Skip to main content
Version: Next

Interface: TranscriptionResult

Defined in: types/stt.ts:250

Structure that represent result of transcription for a one function call (either transcribe or stream).

Properties

duration

duration: number

Defined in: types/stt.ts:253

Duration in seconds of a given transcription.


language

language: string

Defined in: types/stt.ts:252

Language chosen for transcription.


segments?

optional segments: TranscriptionSegment[]

Defined in: types/stt.ts:255

If verbose set to true in DecodingOptions, it contains array of TranscriptionSegment with details split into separate transcription segments.


task?

optional task: "transcribe" | "stream"

Defined in: types/stt.ts:251

String indicating task, either 'transcribe' or 'stream'.


text

text: string

Defined in: types/stt.ts:254

The whole text of a transcription as a string.