/** * AudioTranscriptions — speech-to-text API for the browser SDK. * * Sends audio to the server's `/v1/audio/transcriptions` endpoint * via multipart form upload using browser-native FormData and fetch. */ import type { TranscriptionResult } from "./transcription-types.js"; export interface TranscriptionRequest { /** Audio file to transcribe (File, Blob, or raw ArrayBuffer). */ file: File | Blob; /** Model ID for transcription. */ model?: string; /** BCP-47 language code (e.g. "en", "fr"). */ language?: string; /** Output format: "text", "json", "verbose_json", "srt", "vtt". */ responseFormat?: "text" | "json" | "verbose_json" | "srt" | "vtt"; /** Timestamp granularities — requires responseFormat "verbose_json". */ timestampGranularities?: Array<"word" | "segment">; } export declare class AudioTranscriptions { private readonly serverUrl; private readonly apiKey; constructor(serverUrl: string, apiKey: string); /** * Transcribe audio to text. * * Sends the file as multipart/form-data to the server endpoint. */ create(request: TranscriptionRequest): Promise; } //# sourceMappingURL=audio-transcriptions.d.ts.map