import type * as SarvamAI from "../index.js"; export interface SpeechToTextTranslateTranscriptionData { /** Unique identifier for the request */ request_id: string; /** English translation of the provided speech */ transcript: string; /** BCP-47 code of detected source language (null when language detection is in progress) */ language_code?: string | 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; metrics: SarvamAI.TranscriptionMetrics; }