TranscriptSentence: {
    channel?: string | null;
    confidence: number;
    end: number;
    speaker: string | null;
    start: number;
    text: string;
    words: TranscriptWord[];
}

Type declaration

  • Optionalchannel?: string | null

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

  • confidence: number

    The confidence score for the transcript of this sentence

  • end: number

    The ending time, in milliseconds, for the sentence

  • speaker: string | null

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

  • start: number

    The starting time, in milliseconds, for the sentence

  • text: string

    The transcript of the sentence

  • words: TranscriptWord[]

    An array of words in the sentence

{
"text": "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US.",
"start": 250,
"end": 6350,
"confidence": 0.72412,
"words": [
{
"text": "Smoke",
"start": 250,
"end": 650,
"confidence": 0.72412,
"speaker": null
},
{
"text": "from",
"start": 730,
"end": 1022,
"confidence": 0.99996,
"speaker": null
},
{
"text": "hundreds",
"start": 1076,
"end": 1466,
"confidence": 0.99992,
"speaker": null
},
{
"text": "of",
"start": 1498,
"end": 1646,
"confidence": 1,
"speaker": null
}
],
"speaker": null
}