Feature Overview
The emotional classification model used in our APIs is optimized for North American English conversational data. The API includes a baseline model of 4 basic emotions. The emotions included by default are angry, happy, neutral, and sad. Our other model offerings include different subsets of the following emotions: happy, sad, angry, neutral, surprised, disgusted, nervous, irritated, excited, sleepy.Coming soon – The API will include a model choice parameter, allowing users to choose between models of 4, 5, and 7 emotions.
Choosing an API
While our APIs include the same model offerings in the backend, they are best suited for different purposes.
The DiscreteAPI is built for real-time analysis of emotions in audio data. Small snippets of audio are sent to the API to receive feedback in real-time of what emotions are detected based on tone of voice. This API operates on an approximate per-sentence basis, and audio must be cut to the appropriate size.
The AsynchAPI is built for emotion analysis of pre-recorded audio files. Files of any length, up to 1 GB in size, can be sent to the API to receive a summary of emotions throughout the file. Similar to the DiscreteAPI, this API operates on an approximate per-sentence basis, but the AsynchAPI provides timestamps to show the change in emotions over time.
Coming soon – StreamingAPI via WebSockets for real-time analysis of an audio stream.
Ideal Inputs
The APIs expect mono audio in the .wav format. An ideal audio file is recorded at 44100 Hz (44.1 kHz), though sampling rates as low as 8 kHz can still be used with high accuracy. For custom use cases, microphone specifications can be customized based on audio environment, including optimizations for mono/stereo audio, single microphone applications, noisy environments, etc. For the DiscreteAPI, there are two input data formatting options:- raw audio file
[multipart/form-data] - processed audio file
[application/json]
Outputs
Outputs are returned as JSONs in the following formats: DiscreteAPI:main_emotion is the highest confidence emotion returned from the model. Within all_predictions, each emotion is followed by its level of confidence. Some may use the top two highest confidence emotions to generate more nuanced states. We recommend dropping a main_emotion with confidence under 0.38, but that is at the user’s discretion.
AsynchAPI:
emotions are the highest confidence emotion returned from the model, alongside the timestamp and confidence. The number of values in emotions correlates directly to the length of the input file. We recommend dropping emotions with confidence under 0.38, but that is at the user’s discretion.
Looking for a different interval of timestamps? The customizability of audio length is in beta and will be released soon.

