import { TTS } from '../../agents/providers.js'; import type { DeepgramTTSModel } from './models.js'; /** * Configuration options for the Deepgram text-to-speech (TTS) provider. * * All fields are optional; unspecified values fall back to the defaults * documented below. */ export type DeepgramTTSOptions = { /** * Deepgram API key. Falls back to the `DEEPGRAM_API_KEY` environment * variable, then `null` if neither is set. */ apiKey?: string | null; /** * Deepgram Aura voice/model id (e.g. `'aura-2-andromeda-en'`). * @default 'aura-2-andromeda-en' */ model?: DeepgramTTSModel | string; /** * Voice id to synthesize with. Defaults to the value of `model`. * @default model */ voice?: string; /** * Language code for synthesis (e.g. `'en'`). * @default 'en' */ language?: string; /** * Output audio sample rate in Hz. * @default 24000 */ sampleRate?: number; /** * Stream audio from the model. * @default true */ stream?: boolean; /** * Output audio encoding. * @default 'linear16' */ encoding?: string; /** * Deepgram Speak WebSocket endpoint. * @default 'wss://api.deepgram.com/v1/speak' */ baseUrl?: string; /** Additional/forward-compatible Deepgram options; unknown keys are accepted and passed through. */ [key: string]: any; }; declare class DeepgramTTSImpl extends TTS { _providerName: string; apiKey: string | null; model: string; voice: string; language: string; ttsStream: boolean; ttsEncoding: string; baseUrl: string; constructor(opts?: DeepgramTTSOptions); getRuntimeConfig(): Record; } /** Instance type produced by the {@link DeepgramTTS} factory. */ export type DeepgramTTS = DeepgramTTSImpl; /** * Deepgram text-to-speech (TTS) provider. * * Creates a configured Deepgram TTS instance for use in a voice agent. * * @param opts - Provider options; see {@link DeepgramTTSOptions}. * @returns A configured Deepgram TTS provider instance. */ export declare const DeepgramTTS: (opts?: DeepgramTTSOptions) => DeepgramTTS; export {};