text-to-speech
БесплатноБез исполняемых скриптовНе проверенTurn text into spoken audio with Deepgram. Use when someone asks for text-to-speech, TTS, speech synthesis, a synthetic voice, a voice for a voice agent, an…
от deepgram★ 28 звёзд на GitHubОб этом скилле
Deepgram Text-to-Speech
Deepgram serves two text-to-speech families on separate endpoints, and the voices do not overlap.
Aura voices run only on /v1/speak. Flux TTS voices run only on /v2/speak. /v2/speak is an
additional endpoint. /v1/speak is unchanged and remains supported.
Pick the family first
| Need | Family | Endpoint |
|---|---|---|
| A voice agent that streams LLM output and must survive barge-in | Flux TTS | wss://api.deepgram.com/v2/speak |
| One-shot audio: a file, an IVR prompt, a notification | Flux TTS batch | POST https://api.deepgram.com/v2/speak |
| One response that switches between English and Spanish | Aura-2 codeswitching voice | /v1/speak |
| A non-English voice inside a Voice Agent | Aura-2 | agent.speak.provider.version: "v1" |
An existing aura-2-* or aura-{voice}-en voice you must keep |
Aura-2 or Aura-1 | /v1/speak |
Rule of thumb: Flux TTS is the recommended family for every new build, in any of its 42 languages.
Flux TTS voices speak English (American, British, Irish, Australian, Indian, Singaporean, and Filipino
accents) and 41 other languages; the language is the suffix of the model string (flux-anouk-nl is
Dutch). Text normalization (numbers, dates, abbreviations) covers English, German, Dutch, French,
Hindi, Italian, Japanese, Portuguese, Russian, and Spanish; the other 32 languages are Early Access
without it, so write numbers and dates out in words. The non-English voices are served on
api.deepgram.com, api.eu.deepgram.com, and api.in.deepgram.com, not yet on api.au.deepgram.com.
Aura-2 is the previous generation (English, Spanish, German, French, Dutch, Italian, and Japanese) and
Aura-1 the first, English only. Inside a Voice Agent, non-English voices and compressed or
containerized output need an Aura (v1) voice (see mistake 7).
First request: Aura over REST
curl --request POST \
--url "https://api.deepgram.com/v1/speak?model=aura-2-thalia-en&encoding=linear16&container=wav" \
--header "Authorization: Token $DEEPGRAM_API_KEY" \
--header "Content-Type: application/json" \
--data '{"text": "Hello, how can I help you today?"}' \
--output hello.wav \
--fail-with-body --silent || echo "Request failed"
What to expect:
- A 2xx body is binary audio. Errors are JSON. Check the HTTP status before you parse.
- Options go on the query string. The JSON body carries only
text. - With no
encoding, REST returnsmp3. For WAV sendencoding=linear16&container=wav. Other REST encodings:opus,flac,aac,mulaw,alaw, withcontainer,bit_rate,sample_rate. - If you omit
model,/v1/speakusesaura-asteria-en, an Aura-1 voice. Always setmodel. - Aura-2
speedaccepts0.7to1.5and works for English and Spanish voices only. Use0.9to1.5for Spanish voices; values below0.9may introduce disfluencies. - Aura-2 pronunciation control is GA on
/v1/speakwith the same escaped\{"word":"...","pronounce":"<IPA>"\}syntax Flux TTS uses, for English and Spanish voices, with a 2000-character input limit. Aura-2 has no pause control.
Aura over WebSocket
Connect to wss://api.deepgram.com/v1/speak?model=aura-2-thalia-en&encoding=linear16&sample_rate=24000
with the same Authorization: Token header. Send JSON text frames: {"type":"Speak","text":"..."} to
queue text, {"type":"Flush"} to force audio out, {"type":"Clear"} to drop the buffer, and
{"type":"Close"} to end. Audio arrives as binary frames; Metadata, Flushed, Cleared, and
Warning arrive as JSON. Send Flush when the LLM finishes a response. Flush is limited to 20
sends per 60 seconds. Streaming output is raw linear16 (default), mulaw, or alaw only.
Limits on the Aura socket: 2000 characters of text per request (close 1009, payload BIG-0001), 2400
characters per minute into the socket counted across all Speak messages (close 1008, DATA-0001),
and 60 minutes per connection from the initial connect (close 1011, NET-0003); open a new socket for
a longer conversation. The close-frame codes and the dg-error header on a failed upgrade are listed at
https://developers.deepgram.com/docs/tts-troubleshooting-websocket-net-and-data-errors. Regional hosts
api.eu.deepgram.com, api.au.deepgram.com, and api.in.deepgram.com serve /v1/speak,
REST and WebSocket, with the same key.
Flux TTS for voice agents
Connect to wss://api.deepgram.com/v2/speak?model=flux-haley-en. model is required and must be a
flux-* voice. There is no default, and an Aura string is rejected. For in-region processing use
wss://api.eu.deepgram.com/v2/speak, wss://api.au.deepgram.com/v2/speak, or
wss://api.in.deepgram.com/v2/speak; a region that is unavailable fails the request rather than
routing elsewhere.
A session is a sequence of turns. Stream tokens in, then end the turn:
{"type": "Speak", "text": "Sure, I can "}
{"type": "Speak", "text": "help you cancel your subscription."}
Установить text-to-speech в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл text-to-speech?
Turn text into spoken audio with Deepgram. Use when someone asks for text-to-speech, TTS, speech synthesis, a synthetic voice, a voice for a voice agent, an IVR prompt, or an audio version of some text, and whenever they mention Aura, Aura-2, Flux TTS, /v1/speak or /v2/speak. Trigger phrases: "text to speech", "TTS", "speak endpoint", "generate speech", "synthesize audio", "read this aloud", "which Deepgram voice", "Aura vs Flux TTS", "TTS with barge-in". Gets an agent to a correct first request, then routes to the api, docs, starters, recipes, examples, setup-mcp and per-language SDK text-to-speech skills.
Как установить скилл text-to-speech?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл text-to-speech запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic