import type * as SarvamAI from "../index.mjs"; export interface SpeechToTextTranslateResponse { request_id?: string | undefined; /** Transcript of the provided speech */ transcript: string; /** 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?: SarvamAI.SpeechToTextTranslateLanguage | undefined; /** Diarized transcript of the provided speech */ diarized_transcript?: SarvamAI.DiarizedTranscript | undefined; /** * Float value (0.0 to 1.0) indicating the probability of the detected language being correct. Higher values indicate higher confidence. * * **When it returns a value:** * - When `language_code` is not provided in the request * - When `language_code` is set to `unknown` * * **When it returns null:** * - When a specific `language_code` is provided (language detection is skipped) * * The parameter is always present in the response. */ language_probability?: number | undefined; }