Skip to main content
Want to try TTS without setting up code? Open the live demo and test different models and voices in your browser.
These examples use the Deepgram Aura model; swap the endpoint path to use a different provider.

Placeholders

The snippets below use these placeholders. Replace them before running the code.

Basic Request

Send text and receive a complete audio file in WAV format:
It will sound like this:

More Examples

With Voice Selection (Deepgram Aura)

Beyond the audio generation, each model supports different parameters. For example, to specify a voice in Deepgram Aura:
For the complete parameter reference, see the Text-to-Speech API reference.

With a Different Model

Each model has its own endpoint and may use different parameters. For example, Rime Arcana uses speaker instead of model:
For all available models, endpoints, and their parameters, see the TTS models page. To control how brand names, acronyms, and domain-specific terms are spoken, add a pronunciation dictionary to your TTS request. For voice catalogs with audio samples, browse the Voices section in the sidebar.

Next Steps

Live TTS demo

Try TTS in your browser, no setup needed

TTS WebSocket examples

Stream audio in real time for voice agents

Text-to-Speech models

Browse all TTS models and endpoints

Pronunciation dictionaries

Reuse pronunciation rules across TTS requests

TTS API reference

Endpoint-specific parameters