Interface PlaybackFinishedEvent

interface PlaybackFinishedEvent {
    interrupted: boolean;
    playbackPosition: number;
    synchronizedTranscript?: string;
}

Properties

interrupted: boolean

True if playback was interrupted (clearBuffer() was called)

playbackPosition: number

How much of the audio was played back, in seconds

synchronizedTranscript?: string

Transcript synced with playback; may be partial if the audio was interrupted. When undefined, the transcript is not synchronized with the playback.