import type * as SarvamAI from "../index.js"; export interface SpeechToTextTranscriptionData { /** Unique identifier for the request */ request_id: string; /** Transcript of the provided speech in original language */ transcript: string; /** Always `null` over the WebSocket API — timestamps are not supported for streaming; use the REST or Batch API for timestamped transcripts. */ timestamps?: Record | undefined; /** Always `null` over the WebSocket API — diarization is not supported for streaming; use the Batch API for diarized transcripts. */ diarized_transcript?: Record | undefined; /** BCP-47 code of detected language */ 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) */ language_probability?: number | undefined; metrics: SarvamAI.TranscriptionMetrics; }