deepgram
Skill2 starsChanged 8 months agoMITView on GitHub
Twilio development skill: deepgram
In this repository66 other files it gives its agents.
- adversarial-reviewSkill
- agent-connectSkill
- agent-teams-guideSkill
- agent-testingSkill
- android-sdkSkill
- brainstormSkill
- branded-callingSkill
- callbacksSkill
- compliance-regulatorySkill
- conferenceSkill
- context-engineeringSkill
- context-hubSkill
- conversational-intelligenceSkill
- conversation-relay-referenceSkill
- conversation-relaySkill
- conversationrelaySkill
- conversations-v2Skill
- customer-memorySkill
- deep-validationSkill
- elastic-sip-trunkingSkill
- env-doctorSkill
- event-streamsSkill
- getting-startedSkill
- hooks-referenceSkill
- iamSkill
- ios-sdkSkill
- ivr-crawlerSkill
- ivr-migratorSkill
- lookupSkill
- media-streamsSkill
- memory-systemsSkill
- messaging-services-referenceSkill
- messaging-servicesSkill
- messagingSkill
- multi-agent-patternsSkill
- operational-gotchasSkill
- paymentsSkill
- paySkill
- phone-numbersSkill
- proxySkill
- real-time-transcriptionSkill
- recordingsSkill
- segmentSkill
- sendgrid-emailSkill
- sip-byocSkill
- sipSkill
- sync-referenceSkill
- syncSkill
- taskrouter-referenceSkill
- taskrouterSkill
- tdd-workflowSkill
- tool-boundariesSkill
- twilio-cliSkill
- twilio-invariantsSkill
- verify-referenceSkill
- verifySkill
- video-patternsSkill
- videoSkill
- voice-insightsSkill
- voice-referenceSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
All claims in this skill are backed by live testing (2026-03-24, account ACxx...xx).
- Distinctive: line 28
No Deepgram API key is required.
- Distinctive: line 55
All tested 2026-03-24 with live Twilio calls.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
name: deepgram description: Deepgram STT integration with Twilio Voice. Use when configuring speech recognition with Deepgram for ConversationRelay, Gather, or real-time Transcription. allowed-tools: Read, Grep, Glob
Deepgram Integration Skill
Decision-making guide for using Deepgram speech-to-text within Twilio Voice products. Load this skill when choosing or configuring Deepgram as the STT provider for ConversationRelay, <Gather>, or <Start><Transcription>.
All claims in this skill are backed by live testing (2026-03-24, account ACxx...xx). See references/test-results.md for the full evidence matrix with call SIDs.
Scope: What Deepgram Does (and Doesn't Do) in Twilio
Deepgram is a speech-to-text (STT) provider only in Twilio's voice platform. It is not available for:
- TTS — Use Google, Amazon Polly, or ElevenLabs for text-to-speech
- Batch/post-call transcription — Voice Intelligence uses its own engines
- Media Streams —
<Connect><Stream>delivers raw audio; no native Deepgram routing
No Deepgram API key is required. Twilio manages the Deepgram integration — you configure it through TwiML attributes only.
Attribute Name Map
Each product uses a different mechanism to select Deepgram and a different model name format. This is the single most important table in the skill.
| What you want | ConversationRelay | <Gather> | <Start><Transcription> |
| Select Deepgram | transcriptionProvider="Deepgram" | Implied by deepgram_ prefix on speechModel | transcriptionEngine="deepgram" |
| Choose model | speechModel="nova-3-general" | speechModel="deepgram_nova-3-general" | speechModel="nova-3" |
| Smart formatting | deepgramSmartFormat="true" | N/A | N/A |
| Language | transcriptionLanguage="en-US" | language="en-US" | languageCode="en-US" |
| Hints | hints="pizza, pepperoni" | hints="pizza, pepperoni" | hints="pizza, pepperoni" |
Critical: The model name format is different for every product:
- ConversationRelay:
nova-3-general(bare model name) <Gather>:deepgram_nova-3-general(requiresdeepgram_prefix)<Start><Transcription>:nova-3ornova-3-general(bare, short or full)
Using the wrong format silently fails: ConversationRelay/RTT model names in <Gather> produce error 13334 and fall back to Google. No crash — just the wrong engine.
Model Compatibility Matrix (Live-Tested)
All tested 2026-03-24 with live Twilio calls. Every cell backed by a call SID.
| Model | ConversationRelay | <Gather> | <Start><Transcription> |
nova-3-general / deepgram_nova-3-general | PASS | PASS | PASS |
nova-3 / deepgram_nova-3 | PASS | PASS | PASS |
nova-2-general / deepgram_nova-2-general | PASS | PASS | PASS |
nova-2 / deepgram_nova-2 | PASS | PASS | PASS |
| (omitted/default) | PASS | N/A | PASS |
nova-2-phonecall / deepgram_nova-2-phonecall | not tested | PASS | not tested |
Deepgram works in ALL THREE products. The key is using the correct model name format per product.
Quick Decision: Deepgram vs Google
| Factor | Choose Deepgram | Choose Google |
| Call environment | Noisy, mobile, speakerphone | Clean audio, quiet environment |
| Accents | Heavy or diverse accents | Standard accents |
| Latency | Typically lower | Slightly higher |
| Language coverage | 50+ languages (Nova-3) | Broadest overall |
| CR default | Yes (new accounts post-Sept 2025) | Pre-Sept 2025 accounts |
| RTT default | Must opt in | Default |
<Gather> default | Must opt in (prefix required) | Default |
| Domain models | Medical, phonecall variants | telephony, telephony_short |
Integration Quick Reference
ConversationRelay (7/7 configs tested, all pass)
connect.conversationRelay({
url: 'wss://your-server.com/relay',
transcriptionProvider: 'deepgram', // case-insensitive
speechModel: 'nova-3-general', // bare model name, no prefix
deepgramSmartFormat: 'true', // CR-exclusive feature
voice: 'Google.en-US-Neural2-F', // TTS is a separate provider
language: 'en-US',
});See references/conversation-relay.md for full attribute reference and codebase examples.
<Gather> (5/5 prefixed configs pass)
twiml.gather({
input: 'speech',
speechModel: 'deepgram_nova-3-general', // MUST have deepgram_ prefix
speechTimeout: 'auto',
action: '/voice/handle-result',
});The deepgram_ prefix is mandatory. Without it (nova-3-general), Twilio rejects the model (error 13334) and silently falls back to Google. This follows the same convention as Google V2 models (googlev2_telephony).
<Start><Transcription> (6/6 configs tested, all pass)
start.transcription({
transcriptionEngine: 'deepgram', // case-insensitive
speechModel: 'nova-3', // bare model name, no prefix
track: 'both_tracks',
statusCallbackUrl: callbackUrl,
});Callback field for transcript text is TranscriptionData (JSON string with transcript and confidence keys), not TranscriptionText.
See references/gather-and-transcription.md for full details and callback format.
Gotchas
- Model name format differs per product: This is the #1 pitfall.
<Gather>requires adeepgram_prefix (deepgram_nova-3-general). ConversationRelay and RTT use the bare model name (nova-3-generalornova-3). Using the wrong format causes a silent fallback to Google — no crash, just the wrong engine. - Different attribute names per product: ConversationRelay uses
transcriptionProvider, RTT usestranscriptionEngine,<Gather>has no engine attribute (engine is implied by the model name prefix). BothtranscriptionProviderandtranscriptionEngineare case-insensitive. - Default provider changed Sept 2025: Deepgram became the default
transcriptionProviderfor ConversationRelay on new accounts. Code without explicittranscriptionProvidermay use different engines across accounts. deepgramSmartFormatis ConversationRelay-only: Controls number/date/currency formatting in transcripts. Not available on RTT or Gather.- RTT callback field is
TranscriptionData, notTranscriptionText: The transcript is a JSON string insideTranscriptionDatawith keystranscriptandconfidence. Parsing withevent.TranscriptionTextyields nothing. - No Deepgram API key needed: Twilio manages the integration entirely.
<Gather>fails silently with wrong model format: Error 13334 is a WARNING, not a hard failure. The call continues with Google STT. You will get speech recognition results — just not from Deepgram. Always check call notifications after testing to confirm.
Related Resources
- ConversationRelay CLAUDE.md — Protocol, streaming, WebSocket handler patterns
- Voice Skill — Transcription Method Selection framework, TTS Voice Tier guidance
- Voice Use Case Map — Per-use-case product recommendations
- Media Streams Skill — Raw audio alternative (no native Deepgram, bring-your-own STT)
Reference Files
| Topic | File | When to read |
| ConversationRelay config | references/conversation-relay.md | Configuring Deepgram STT for voice AI agents, TTS pairing, codebase examples |
| Gather & Transcription | references/gather-and-transcription.md | <Gather> prefix syntax, RTT callback format |
| Model selection | references/model-selection.md | Choosing between Deepgram models, comparing Deepgram vs Google |
| Test evidence | references/test-results.md | Full test matrix with call SIDs, 25+ tests across 3 products |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

