Vocalization events
Laughs, sighs, coughs, sneezes and screams in the audio
Besides how something is said, the Behavioral API also detects non-verbal vocalizations: sounds people make that are not words. They come back as extra tasks in the results of every behavioral request, both for files and for streams. There is nothing to enable and no extra cost.
🔊 The events
| Task | What it detects |
|---|---|
laugh | Laughter |
sigh | A sigh |
cough | A cough |
sneeze | A sneeze |
scream | A scream |
Vocalization events are part of the Behavioral API only. The Deepfake Detection API does not return them.
🔍 How events are detected
- The audio is checked in 1-second windows from the start of the recording, separately from speech detection, so an event is found whether it happens in silence or next to speech.
- Only detections are returned. If no event is found, the results contain no event tasks. An event that is not in the results was not detected.
- Consecutive detected seconds are merged into one result. A laugh detected in seconds 7 and 8 is one
laughresult from7.00to9.00. - Because of the 1-second windows,
startTimeandendTimeof an event are whole seconds (the last window of the audio can be shorter). - More than one event can be returned for the same moment, for example a
sighand ascream.
Each event result has the same shape as the other tasks:
{
"id": "2",
"startTime": "7.00",
"endTime": "9.00",
"task": "laugh",
"prediction": [
{ "label": "yes", "posterior": "0.9652" },
{ "label": "no", "posterior": "0.0348" }
],
"finalLabel": "yes",
"level": "utterance"
}finalLabel is always yes, because only detections are returned. The yes posterior is the confidence of the detection. When an event lasts several seconds, the prediction is the one of its most confident second. Each event has its own detection threshold, set so that detections are precise: an event is returned only when its confidence passes that threshold.
📄 In file results
Events are returned with the rest of the results, with level set to utterance.
- An event is attached to the utterance it overlaps the most: it gets that utterance's
id. - It keeps its own
startTimeandendTime, which show when the event happened inside the utterance. - An event that overlaps no utterance (for example a cough in a pause) gets its own
id. The ids are then numbered in time order, so they still follow the timeline. Such anidhas only event results: nodiarization,asror behavioral tasks.
For example, a speaker who laughs at the start of an utterance:
[
{
"id": "2",
"startTime": "7.507",
"endTime": "12.586",
"task": "diarization",
"prediction": [{ "label": "SPEAKER_00" }],
"finalLabel": "SPEAKER_00",
"level": "utterance"
},
{
"id": "2",
"startTime": "7.507",
"endTime": "12.586",
"task": "emotion",
"prediction": [
{ "label": "happy", "posterior": "0.9705" },
{ "label": "angry", "posterior": "0.0105" },
{ "label": "sad", "posterior": "0.0096" },
{ "label": "neutral", "posterior": "0.0094" }
],
"finalLabel": "happy",
"level": "utterance"
},
{
"id": "2",
"startTime": "7.00",
"endTime": "9.00",
"task": "laugh",
"prediction": [
{ "label": "yes", "posterior": "0.9652" },
{ "label": "no", "posterior": "0.0348" }
],
"finalLabel": "yes",
"level": "utterance"
}
]📡 In streams
When streaming, events are sent as soon as they can be, at both levels, like the other results:
- Segment level: an event that happens during speech is sent in the same message as that segment's results, with the segment's
id. Events are merged only within one segment. - Utterance level: the same event is also sent with the utterance it happens in, with the utterance's
id, when the utterance ends. - In a pause: an event that happens outside speech is sent in a message of its own, once at segment level and once at utterance level, each with its own
id.
So whichever level you choose, you receive every event. With level empty you receive each event twice, once per level, like every other task.
A laugh at segment level:
{
"pid": 44676,
"cid": 10000119,
"message_id": 14,
"results": [
{
"id": "14",
"startTime": "7.00",
"endTime": "9.00",
"task": "laugh",
"prediction": [
{ "label": "yes", "posterior": "0.9649" },
{ "label": "no", "posterior": "0.0351" }
],
"finalLabel": "yes",
"level": "segment"
}
]
}The same laugh at utterance level, in the message of the utterance it happened in:
{
"id": "20",
"startTime": "7.00",
"endTime": "9.00",
"task": "laugh",
"prediction": [
{ "label": "yes", "posterior": "0.9649" },
{ "label": "no", "posterior": "0.0351" }
],
"finalLabel": "yes",
"level": "utterance"
}An event that spans the end of an utterance and the pause after it is split in two: the part inside the utterance goes with the utterance, the part in the pause comes in its own message.
ℹ️ Good to know
- Events are detected best when they stand out from speech: alone, or overlapping speech only in part. An event fully covered by someone talking is often missed.
- The times have a 1-second resolution, so use them to locate an event, not to measure its exact length.
- Like all our outputs, detections are model estimates. Use them to find and count moments in a call, for example how often a customer laughs or sighs, rather than as exact measurements.
Updated 12 days ago

