The Sentiment Analysis model detects the sentiment of each spoken sentence in the transcript text. 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.
sentiment_analysis
to true
in the transcription config.
speaker_labels
in the transcription config.
Each sentiment result will then have a speaker
field that contains the speaker label.
Key | Type | Description |
---|---|---|
sentiment_analysis | boolean | Enable Sentiment Analysis. |
Key | Type | Description |
---|---|---|
sentiment_analysis_results | array | A temporal sequence of Sentiment Analysis results for the audio file, one element for each sentence in the file. |
sentiment_analysis_results[i].text | string | The transcript of the i-th sentence. |
sentiment_analysis_results[i].start | number | The starting time, in milliseconds, of the i-th sentence. |
sentiment_analysis_results[i].end | number | The ending time, in milliseconds, of the i-th sentence. |
sentiment_analysis_results[i].sentiment | string | The detected sentiment for the i-th sentence, one of POSITIVE , NEUTRAL , NEGATIVE . |
sentiment_analysis_results[i].confidence | number | The confidence score for the detected sentiment of the i-th sentence, from 0 to 1. |
sentiment_analysis_results[i].speaker | string or null | The speaker of the i-th sentence if Speaker Diarization is enabled, else null. |
What if the model predicts the wrong sentiment label for a sentence?
What if the transcript contains sensitive or offensive content?
What if the sentiment analysis results aren't consistent with my expectations?
What if the sentiment analysis is taking too long to process?