Text-to-Speech Commands
Text-to-Speech Commands
Synthesize speech from text with Deepgram Flux TTS and Aura models using the dg CLI.
Basic Synthesis
Save to File
Pipe to Speaker
Options
Model Selection
dg speak defaults to flux-alexis-en. Flux TTS uses the Speak v2 WebSocket API and streams raw audio; when writing the default linear16 output to a file, the CLI wraps it in a WAV container. Use an aura-* model for the Speak v1 REST API.
List available TTS models:
Output Format
-o or --output sets the output file path. To select audio encoding, use --encoding; Aura models also support --container.
Streaming
Flux TTS streams audio by default. Pipe the WAV stream to a player instead of writing it to a file:
Flux models also support --speed from 0.85 to 1.15 in 0.05 increments and beta --expressivity from -2 to 2:
Example Workflows
Batch Synthesis
Language Selection
Choose a model for the required language. The language is part of the model identifier; dg speak does not have a --language option.