Text-to-speech provider backed by the Deepgram Aura /v1/speak REST API.
/v1/speak
POST {baseUrl}/speak?model={voice}&encoding={enc}
Authorization: Token <apiKey>
{ text }
audio/mpeg
Aura caps a request at 2000 characters, so longer text is chunked at sentence boundaries and the audio buffers are concatenated.
const provider = new DeepgramTextToSpeechProvider({ apiKey: process.env.DEEPGRAM_API_KEY!, voice: 'aura-2-arcas-en',});const result = await provider.synthesize('Hello there!'); Copy
const provider = new DeepgramTextToSpeechProvider({ apiKey: process.env.DEEPGRAM_API_KEY!, voice: 'aura-2-arcas-en',});const result = await provider.synthesize('Hello there!');
Returns the static Aura-2 voice catalog (a shallow copy).
Readonly
Text-to-speech provider backed by the Deepgram Aura
/v1/speakREST API.API Contract
POST {baseUrl}/speak?model={voice}&encoding={enc}Authorization: Token <apiKey>{ text }audio/mpegfor mp3)Aura caps a request at 2000 characters, so longer text is chunked at sentence boundaries and the audio buffers are concatenated.
Example