The Sentiment Analysis model detects the sentiment of each spoken sentence in audio files. Use Sentiment Analysis to get a detailed analysis of the positive, negative, or neutral sentiment conveyed in the audio, along with a confidence score for each result.
curl https://api.assemblyai.com/v2/transcript \
--header "Authorization: YOUR_API_KEY" \
--header "Content-Type: application/json" \
|Enable Sentiment Analysis.
|A temporal sequence of Sentiment Analysis results for the audio file, one element for each sentence in the file.
|The transcript of the i-th sentence.
|The starting time, in milliseconds, of the i-th sentence.
|The ending time, in milliseconds, of the i-th sentence.
|The detected sentiment for the i-th sentence, one of
|The confidence score for the detected sentiment of the i-th sentence, from 0 to 1.
|string or null
|The speaker of the i-th sentence if Speaker Diarization is enabled, else null.
Frequently asked questions
The Sentiment Analysis model is based on the interpretation of the transcript and may not always accurately capture the intended sentiment of the speaker. It's recommended to take into account the context of the transcript and to validate the sentiment analysis results with human judgment when possible.
It's important to ensure that the audio being analyzed is relevant to your use case. Additionally, it's recommended to take into account the context of the transcript and to evaluate the confidence score for each sentiment label.
The Sentiment Analysis model is designed to be fast and efficient, but processing times may vary depending on the size of the audio file and the complexity of the language used. If you experience longer processing times than expected, don't hesitate to contact our support team.