/** * SCAFFOLD: Gemini TTS request/response per docs; verify against a real key. * * Gemini TTS backend — wraps the generativelanguage.googleapis.com * `gemini-2.5-flash-preview-tts:generateContent` endpoint. This is an * API-KEY product (NOT Vertex), so it resolves a key from the existing * Gemini key pool (GEMINI_API_KEYS / GOOGLE_API_KEYS / GOOGLE_API_KEY) via * `fetchGeminiWithPool`. When a caller passes `input.env` carrying a key the * process.env-backed pool cannot see, that key is forwarded as the pool's * `keyOverride` so library callers authenticate without mutating process.env. * * The model returns RAW PCM (signed 16-bit little-endian, 24kHz, mono) as * base64 in candidates[0].content.parts[].inlineData.data. We wrap that PCM * in a 44-byte WAV header and write the result to `outputPath` (a .wav). * * Duration is computed deterministically from the PCM byte count — no ffprobe: * durationMs = round(pcmBytes / (24000 * 2) * 1000) * * Availability: a Gemini key is resolvable (pool size > 0 or one of the env * vars is set). The backend is inert (unavailable) without a key and never * throws on the default path; on a missing/empty audio response it throws * VclawError('tts_failed', ...). */ import type { TtsBackend } from './types.js'; export declare const geminiTts: TtsBackend; //# sourceMappingURL=native-gemini-tts.d.ts.map