import type * as SarvamAI from "../index.mjs"; export interface SpeechToTextResponse { request_id?: string | undefined; /** The transcribed text from the provided audio file. */ transcript: string; /** Chunk-level timestamps for the transcribed text (sentence/phrase segments, not individual words). Present only when `with_timestamps` is `true`; omitted otherwise. */ timestamps?: SarvamAI.TimestampsModel | undefined; /** This will return the BCP-47 code of language spoken in the input. If multiple languages are detected, this will return language code of most predominant spoken language. If no language is detected, this will be null */ language_code?: string | undefined; /** Float value (0.0 to 1.0) indicating confidence in the detected language. Present when `language_code` is omitted or set to `unknown`; omitted (or null) when a specific language code is provided. */ language_probability?: number | undefined; }