Skip to main content
POST
Detect emotion in an audio file

Authorizations

X-API-Key
string
header
required

API key used for authentication and usage tracking.

Body

multipart/form-data
upload_file
file
required

Audio file to analyze. Supported formats: AAC, AIFF, FLAC, MP3, MP4, MOV, OGG, Opus, WAV, WebM. Maximum file size: 100MB. Empty files are rejected.

Response

Emotion detection completed successfully

emotion
enum<string>
required

The emotion label for the whole file. Always present and non-null.

Available options:
Angry,
Disgusted,
Afraid,
Happy,
Neutral,
Other,
Sad,
Surprised,
Unknown
Example:

"Happy"

time_series
object[]
required

Consecutive fixed-length windows over the file, each with its own emotion label. Empty when the file is shorter than one window.