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-id Deepgram support asks for (plus model name/uuid, character count, content type) with speak_to_file_with_metadata(...) / speak_to_stream_with_metadata(...), which return a SpeakMetadata alongside the audio. Every field is optional, so read it through metadata.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 with flux_speak_to_file(...) or flux_speak_to_stream(...), or turn by turn over the WebSocket with flux_request(options).handle().

Authentication

For a TTS-only install:

Installs
13
GitHub Stars
71
First Seen
May 31, 2026