Deepgram speech

From calesthio/generative-media-skills · View interactive version

Deepgram speech is an AI agent skill from the GitHub repository calesthio/generative-media-skills. Use for Deepgram speech and voice production workflows: speech-to-text transcription, live captions, diarization, audio intelligence, Aura text-to-speech, Flux and Voice Agent live audio, model selection, cost/limits/privacy checks, artifact custody, and production QA.

How to use this skill

Skill file

Deepgram speech production

Use this skill when Deepgram is a candidate provider for transcription, captioning, speech analytics, voice-agent audio, or text-to-speech assets. Treat Deepgram as a production speech platform, not as a generic "make audio" button: choose the endpoint, model, features, and custody plan from the deliverable's latency, accuracy, language, privacy, and artifact requirements.

Facts in this skill were checked against official Deepgram documentation and pricing on 2026-07-10. Verify volatile items again before spend or launch: public model IDs, language support, add-on prices, concurrency, regional availability, and early-access controls.

Primary official evidence used:

Documented capability map

Speech-to-text

Deepgram exposes three STT paths:

  1. Pre-recorded audio through REST POST /v1/listen. Use for podcast/video transcription, post-production captions, batch media archives, call recordings, editorial analysis, and any job where complete-file turnaround matters more than sub-second partials. It accepts local binary audio or a hosted URL, supports callbacks, and returns the only transcript response Deepgram will provide unless you save it.
  2. Live streaming through WebSocket wss://api.deepgram.com/v1/listen. Use for live captions, meeting/event transcription, live production logging, and agent-assist transcripts. It can emit interim and final results, speech events, endpointing, utterance events, and word timings.
  3. Turn-based conversational STT through Flux (/v2/listen in current docs). Use for live voice agents and interruption-sensitive conversations where end-of-turn behavior matters. Flux is not the normal choice for offline transcription.

Current model guidance from Deepgram docs, verified 2026-07-10:

Transcript formatting and enrichment

Deepgram can return word-level timestamps and confidence scores. Production-useful STT options include punctuation, smart formatting, paragraphs, utterances, numerals, profanity filtering, redaction, search/replace, keywords/keyterms, diarization, multichannel, language selection, language detection, and code-switching.

Important boundaries:

Captions and subtitles

Deepgram is useful for producing timed subtitle files because the response includes word timings and Deepgram provides SRT/WebVTT examples. It does not replace video editorial QA:

Audio Intelligence

Official STT/audio intelligence features include summarization, topic detection, intent recognition, sentiment analysis, and entity detection. Current Deepgram docs contain per-feature language/streaming limits and at least one visible inconsistency between the feature matrix and an individual feature page, so verify the exact feature page immediately before promising language or streaming support.

Safe production interpretation, verified 2026-07-10:

Text-to-speech

Deepgram Aura provides TTS through REST POST /v1/speak and WebSocket wss://api.deepgram.com/v1/speak.

Documented TTS facts, verified 2026-07-10:

Voice Agent API and live audio

Use Deepgram Voice Agent when the deliverable is an interactive agent, not just a transcript or narration file. Voice Agent combines audio input, STT, LLM routing, TTS, tool/function messages, conversation text, and audio output over a WebSocket. Send a Settings message immediately after connection to configure input/output audio, listen/think/speak providers, prompt, turn-taking, and tools.

Use separate STT + LLM + TTS components instead of Voice Agent when the production needs:

Empirical and operational observations

These are operational patterns, not provider guarantees:

Production heuristics

Apply these unless user constraints require otherwise:

Workflow recipes

Pre-recorded transcription and captions

  1. Confirm consent and rights to process the audio.
  2. Inspect media: duration, channels, sample rate, language(s), speakers, music/noise, target platform.
  3. Choose model and features:
  1. Use callback for long jobs or server workflows; Deepgram documents asynchronous processing and retries for callback delivery.
  2. Save raw response, plain transcript, SRT/VTT, warnings, request parameters, model, region, request ID, and checksums for source media.
  3. QA against the audio. Correct names, numbers, timestamps, diarization, and caption line breaks.

Live captions

  1. Confirm live audio capture format before opening the socket. Pass encoding, sample_rate, and channels accurately for raw audio.
  2. Use Nova-3 live streaming unless agent-style turn detection is required.
  3. Enable interim_results=true only if the UI is designed to revise text; otherwise display final segments.
  4. Tune endpointing, utterance_end_ms, and speech events for caption cadence.
  5. Keep a rolling transcript buffer and persist final messages. Network interruptions are expected; implement reconnect behavior and mark gaps.
  6. Do not rely on live diarization to identify people by name; map speakers after review or from channel/source metadata.

Voice agent

  1. Decide whether Voice Agent is warranted. If the task is "make a narrated video," use TTS. If the task is "build an interactive phone/web agent," Voice Agent may fit.
  2. Configure Settings immediately after WebSocket connection.
  3. Set listen/think/speak providers intentionally. Deepgram docs show Deepgram TTS as default and support managed/BYO LLM/TTS providers; record which provider produced each output.
  4. Test interruption, barge-in, silence, endpointing, tool calls, errors/warnings, and fallback behavior before production.
  5. Store conversation text and event logs according to consent and privacy rules; do not store sensitive raw audio unless required and authorized.

TTS narration

  1. Rewrite text for speech: short sentences, pronounceable acronyms, explicit pauses, and production-safe punctuation.
  2. Pick an Aura voice ID from current docs, e.g. aura-2-thalia-en, and audition it.
  3. Keep each request under the documented input limit. For long narration, chunk at sentence/paragraph boundaries and store each take as a separate artifact.
  4. Use pronunciation controls for brand names, medical terms, or proper nouns when available for the language.
  5. Export in the requested container/sample rate/encoding. Loudness-normalize and mix outside Deepgram.

Cost, quotas, and rate-limit handling

Deepgram pricing and quotas are volatile. Verify the pricing page and rate-limit docs on the day of the run.

As of 2026-07-10, the public pricing page listed a $200 free credit and example pay-as-you-go STT rates such as Flux English, Flux Multilingual, Nova-3 Monolingual, and Nova-3 Multilingual with separate Growth rates. It also listed add-on pricing for features such as redaction and keyterm prompting. Do not hardcode these values in a client quote without rechecking.

As of 2026-07-10, official rate-limit docs listed different concurrency ceilings by plan, region, product, and feature. Examples included:

If a request combines services, plan for the lowest applicable limit. In production, implement queueing, retries with backoff, circuit breakers, and per-project usage tags.

Privacy, security, consent, and rights

Documented facts:

Production rules:

Artifact custody checklist

For every production job, write a small run record outside the final media asset:

Complete examples

Example: podcast episode transcript plus subtitles

Production intent: create an editable transcript, SRT, and topic summary for a 48-minute two-host podcast with occasional guest overlap.

Workflow and parameters:

Endpoint: POST https://api.deepgram.com/v1/listen
Input: hosted WAV/MP3 URL or local audio upload
Query:
  model=nova-3
  smart_format=true
  utterances=true
  paragraphs=true
  diarize_model=latest
  summarize=v2
  topics=true
  tag=podcast-s01e04

Expected result: Deepgram returns a JSON transcript with words, timings, speaker labels, utterance/paragraph structure, summary/topics when supported, request metadata, and warnings if a feature/language combination is unsupported. Generate SRT from word or utterance timings, then manually correct names and speaker labels.

Why structured this way: Nova-3 fits finished transcript accuracy; smart formatting improves readability; utterances/paragraphs help editorial review; diarization is needed because speakers overlap in one mix; tags help usage tracking.

Failure modes:

Variations:

Example: live conference captions

Production intent: display real-time captions on a conference stream and archive final transcript.

Workflow and parameters:

Endpoint: wss://api.deepgram.com/v1/listen
Model: nova-3
Audio: linear16, 16000 Hz, mono, small steady chunks
Query:
  model=nova-3
  language=en-US
  encoding=linear16
  sample_rate=16000
  channels=1
  smart_format=true
  interim_results=true
  endpointing=300
  utterance_end_ms=1000
  vad_events=true

Expected result: interim hypotheses update during speech; final segments are persisted to the transcript and displayed with less churn. Caption UI visibly revises interim text and locks final text.

Why structured this way: live captions need responsiveness, but the archive needs final messages. Declaring raw audio format avoids decoding errors.

Failure modes:

Variations:

Example: support voice agent prototype

Production intent: build a real-time customer support agent that handles interruptions and speaks back.

Workflow and parameters:

Endpoint: Deepgram Voice Agent WebSocket
First message: Settings
Listen: Flux or current Deepgram conversational STT model
Think: configured LLM provider and system prompt
Speak: Deepgram Aura-2 voice, e.g. aura-2-thalia-en
Tools: order lookup, escalation, support article retrieval
Audio: telephony/browser format declared explicitly

Expected result: the agent emits conversation text, thinking/speaking state messages, function-call requests, warnings/errors, and binary audio output. It should detect end-of-turn and permit interruption according to configuration.

Why structured this way: Flux/Voice Agent is for turn-taking, not offline transcription. Settings-first configuration prevents ambiguous defaults.

Failure modes:

Variations:

Example: product-video narration with Aura

Production intent: generate clean English narration for a 90-second product video.

Workflow and parameters:

Endpoint: POST https://api.deepgram.com/v1/speak
Model: aura-2-thalia-en
Container/encoding/sample rate: choose for the editor delivery spec
Request text: one paragraph or scene beat at a time, under 2000 characters
Optional controls: speed=0.95; pronunciation overrides for product names if supported

Expected result: separate audio files per scene/paragraph that can be reviewed, replaced, loudness-normalized, and mixed with music/SFX.

Why structured this way: scene-sized chunks are easier to retake and align. The 2000-character limit prevents request failure, while punctuation and beat-based text improve performance.

Failure modes:

Variations:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.