deepgram-rust-text-to-speech
Installation
SKILL.md
Using Deepgram Text-to-Speech (Rust SDK)
Use this skill when generating audio from text with the Rust SDK's Speak surface.
When to use this product
- Converting text into audio files with
speak_to_file(...). - Streaming TTS bytes with
speak_to_stream(...). - Capturing the
dg-request-idDeepgram support asks for (plus model name/uuid, character count, content type) withspeak_to_file_with_metadata(...)/speak_to_stream_with_metadata(...), which return aSpeakMetadataalongside the audio. Every field is optional, so read it throughmetadata.request_id(). - Selecting Aura voices and output encodings with
speak::options::Options. - Streaming text in and audio out over the Aura WebSocket with
speak_stream().handle()— the shape to use when the text comes from an LLM and the audio goes to a player. - Synthesizing with Flux TTS (
/v2/speak) in batch withflux_speak_to_file(...)orflux_speak_to_stream(...), or turn by turn over the WebSocket withflux_request(options).handle().
Authentication
For a TTS-only install: