SentimentAnalysisResult: {
    confidence: number;
    end: number;
    sentiment: Sentiment;
    speaker?: string | null;
    start: number;
    text: string;
}

The result of the Sentiment Analysis model

Type declaration

  • confidence: number

    The confidence score for the detected sentiment of the sentence, from 0 to 1

  • end: number

    The ending time, in milliseconds, of the sentence

  • sentiment: Sentiment

    The detected sentiment for the sentence, one of POSITIVE, NEUTRAL, NEGATIVE

  • Optionalspeaker?: string | null

    The speaker of the sentence if Speaker Diarization is enabled, else null

  • start: number

    The starting time, in milliseconds, of the sentence

  • text: string

    The transcript of the sentence

{
"text": "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US.",
"start": 250,
"end": 6350,
"sentiment": "NEGATIVE",
"confidence": 0.8181032538414001,
"speaker": null
}