agentleFS
wittyreferencewittyreference/twilio-claude-plugin/skills/deepgram/SKILL.md

deepgram

Skill2 starsChanged 8 months agoMITView on GitHub

Twilio development skill: deepgram

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
  1. Distinctive:

    All claims in this skill are backed by live testing (2026-03-24, account ACxx...xx).

    line 16
  2. Distinctive:

    No Deepgram API key is required.

    line 28
  3. Distinctive:

    All tested 2026-03-24 with live Twilio calls.

    line 55

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 wantConversationRelay<Gather><Start><Transcription>
Select DeepgramtranscriptionProvider="Deepgram"Implied by deepgram_ prefix on speechModeltranscriptionEngine="deepgram"
Choose modelspeechModel="nova-3-general"speechModel="deepgram_nova-3-general"speechModel="nova-3"
Smart formattingdeepgramSmartFormat="true"N/AN/A
LanguagetranscriptionLanguage="en-US"language="en-US"languageCode="en-US"
Hintshints="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 (requires deepgram_ prefix)
  • <Start><Transcription>: nova-3 or nova-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.

ModelConversationRelay<Gather><Start><Transcription>
nova-3-general / deepgram_nova-3-generalPASSPASSPASS
nova-3 / deepgram_nova-3PASSPASSPASS
nova-2-general / deepgram_nova-2-generalPASSPASSPASS
nova-2 / deepgram_nova-2PASSPASSPASS
(omitted/default)PASSN/APASS
nova-2-phonecall / deepgram_nova-2-phonecallnot testedPASSnot tested

Deepgram works in ALL THREE products. The key is using the correct model name format per product.


Quick Decision: Deepgram vs Google

FactorChoose DeepgramChoose Google
Call environmentNoisy, mobile, speakerphoneClean audio, quiet environment
AccentsHeavy or diverse accentsStandard accents
LatencyTypically lowerSlightly higher
Language coverage50+ languages (Nova-3)Broadest overall
CR defaultYes (new accounts post-Sept 2025)Pre-Sept 2025 accounts
RTT defaultMust opt inDefault
<Gather> defaultMust opt in (prefix required)Default
Domain modelsMedical, phonecall variantstelephony, 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

  1. Model name format differs per product: This is the #1 pitfall. <Gather> requires a deepgram_ prefix (deepgram_nova-3-general). ConversationRelay and RTT use the bare model name (nova-3-general or nova-3). Using the wrong format causes a silent fallback to Google — no crash, just the wrong engine.
  2. Different attribute names per product: ConversationRelay uses transcriptionProvider, RTT uses transcriptionEngine, <Gather> has no engine attribute (engine is implied by the model name prefix). Both transcriptionProvider and transcriptionEngine are case-insensitive.
  3. Default provider changed Sept 2025: Deepgram became the default transcriptionProvider for ConversationRelay on new accounts. Code without explicit transcriptionProvider may use different engines across accounts.
  4. deepgramSmartFormat is ConversationRelay-only: Controls number/date/currency formatting in transcripts. Not available on RTT or Gather.
  5. RTT callback field is TranscriptionData, not TranscriptionText: The transcript is a JSON string inside TranscriptionData with keys transcript and confidence. Parsing with event.TranscriptionText yields nothing.
  6. No Deepgram API key needed: Twilio manages the integration entirely.
  7. <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

TopicFileWhen to read
ConversationRelay configreferences/conversation-relay.mdConfiguring Deepgram STT for voice AI agents, TTS pairing, codebase examples
Gather & Transcriptionreferences/gather-and-transcription.md<Gather> prefix syntax, RTT callback format
Model selectionreferences/model-selection.mdChoosing between Deepgram models, comparing Deepgram vs Google
Test evidencereferences/test-results.mdFull test matrix with call SIDs, 25+ tests across 3 products

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.