export type SpeechToTextInput = { buffer: Buffer; filename: string; mimeType: string; language?: string; prompt?: string; abortSignal?: AbortSignal; }; export type SpeechToTextResult = { text: string; language?: string; raw?: unknown; }; export interface SpeechToTextAdapter { name: string; validate(): void; transcribe(input: SpeechToTextInput): Promise; } export type TtsAudioFormat = "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm"; export type TextToSpeechInput = { text: string; voice?: Voice; format?: TtsAudioFormat; speed?: number; instructions?: string; abortSignal?: AbortSignal; stream?: false; }; export type TextToSpeechResult = { audio: Buffer; mimeType: string; format: TtsAudioFormat; raw?: unknown; }; export type TtsStreamFormat = "audio" | "sse"; export type TextToSpeechStreamInput = Omit, "stream"> & { stream: true; streamFormat?: TtsStreamFormat; }; export type TextToSpeechStreamResult = { audioStream: ReadableStream; mimeType: string; format: TtsAudioFormat; streamFormat: TtsStreamFormat; raw?: unknown; }; export interface TextToSpeechAdapter { name: string; validate(): void; synthesize(input: TextToSpeechStreamInput): Promise; synthesize(input: TextToSpeechInput): Promise; } export type AudioAdapter = SpeechToTextAdapter & TextToSpeechAdapter; //# sourceMappingURL=AudioAdapter.d.ts.map