/** * AudioSpeech — hosted text-to-speech for the browser SDK. * * Mirrors OpenAI's ``client.audio.speech.create(...)`` shape. Posts to the * hosted ``{base}/audio/speech`` endpoint where ``{base}`` is the canonical * hosted root (``https://api.octomil.com/v1``) and returns the raw audio * bytes as a Blob plus Octomil routing metadata surfaced via ``X-Octomil-*`` * response headers. * * v0.10.0 hosted API cutover: legacy control-plane bases (``/api/v1``) * are rejected at construction time; no silent normalization. */ export interface SpeechCreateRequest { model: string; input: string; voice?: string; responseFormat?: "mp3" | "wav" | "ogg" | "opus" | "flac" | "aac" | "pcm"; speed?: number; } export interface SpeechResponse { audio: Blob; contentType: string; provider?: string; model?: string; latencyMs?: number; billedUnits?: number; unitKind?: string; } export declare class AudioSpeech { private readonly hostedBase; private readonly apiKey; constructor(serverUrl: string, apiKey: string); create(request: SpeechCreateRequest): Promise; } //# sourceMappingURL=audio-speech.d.ts.map