Type Alias SentimentAnalysisResult

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

The result of the Sentiment Analysis model

Type declaration

  • Optionalchannel?: string | null

    The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially.

  • 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

  • speaker: 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
}