Emotion Detection (batch)
Returnsapplication/json.
There is no top-level duration field. Derive audio length from the last window if it is needed.
Try it
Output
Response
Response
What you can configure
Audio formats
Accepted extensions:.aac, .aiff, .flac, .mov, .mp3, .mp4, .ogg, .opus, .wav, .webm.
Maximum file size is 100 MB. Empty files are rejected with 400.
Labels
Angry, Disgusted, Afraid, Happy, Neutral, Other, Sad, Surprised, Unknown.
Working with the time series
Windows are consecutive and cover the file from the start. A trailing remainder shorter than one full window is dropped. A file shorter than a single window returns an emptytime_series, but emotion is still present, so the whole-file label is safe to rely on at any length.
Emotion alongside a transcript
Multilingual Transcription acceptsemotion_signal=true, which attaches an emotion label to every utterance in the same call as the transcript. That label set is separate from the one above. Use that when a transcript is also needed. This endpoint exists for whole-file classification with no transcript. See Transcription.