agentleFS
GetStreamGetStream/Agents/.claude/skills/router-stt/SKILL.md

router-stt

Skill8.2k starsChanged 58 days agoApache-2.0View on GitHub

What the STT router can be asked for, what each vendor calls it, and what it refuses to fake. Read before adding an STT option or an STT provider.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about GetStream/Agents

The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 8

Talked about on GitHub (8 times).

On GitHub · 8

3 more on GitHub

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read it in each provider that can express it, and declare it in supports:.

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Routing speech to text

The per-modality half of router-interface. The vocabulary is options.STT; who can express what is declared per model in router.yaml.

Two paths, two sets of models. Live transcription is a socket at /v1/stt/stream and routes to the models marked realtime: true. A recording is a job at /v1/stt/recordings and routes to the ones marked realtime: false — the batch endpoints, which are both cheaper per hour and more accurate than the same vendor's streaming model, because they have the whole file in front of them. en-recorded and multilingual-recorded are the aliases for that half, and they require_recorded, so a recording is never streamed at a live model by accident. A recording sent to a live-only shortcut goes to the recorded one for the same languages (en-low-latency to en-recorded). One that names no language (stt-fast, stt-accurate) goes by the recording's language hints: none or all English, en-recorded; any other, multilingual-recorded. A recording pinned to a realtime: true model (deepgram/flux-general-en) is refused before any vendor is asked, naming the recorded shortcuts (ModalityConfig.Recorded). The other way round, a live session pinned to a realtime: false model (deepgram/nova-3), to a shortcut with only such candidates (en-recorded), or to a priority list holding only those, is refused before any vendor is dialled, naming the vendor's live models and the live shortcuts (ModalityConfig.Live). An agent checks its STT target once as it joins, so the session start is refused rather than every frame of the call. A voice agent config is checked as it is saved (liveSTTComplaint), unless it has an STS model, is a text agent, or keeps the stt it had stored. The socket closes with 1008, the code for a request that routing refuses.

The top five, and what each calls the same thing

OptionDeepgramAssemblyAIElevenLabs ScribeSpeechmaticsCartesia Ink
languageslanguagelanguage_codelanguage_codetranscription_config.languagelanguage
detect_languagedetect_languagelanguage_detectiondetected by defaultlanguage_identification—
interiminterim_resultspartials by defaultlive onlyenable_partialspartials by default
endpointing, silence_msendpointing, utterance_end_msend_of_turn_confidence_threshold—max_delaymax_silence_duration_secs
diarizediarizespeaker_labelsdiarizediarization: speaker—
max_speakers—speakers_expected (caps at 10)num_speakers (up to 32)speaker_diarization_config.max_speakers—
keytermskeyterm (batch), keyterms (Flux)keyterms_prompt, word_boost—additional_vocab—
formatsmart_format, punctuateformat_text, punctuateon by defaultpunctuation_overrides—
redactredactredact_pii + policies—transcript_filtering_config—
wordswords in the responsewords in the responsetimestamps_granularitywords in the response—
summary, entitiessummarize, detect_entitiessummarization, entity_detection—summarization—
channelsmultichannelmultichannel—diarization: channel—

Three things this table is really saying:

  • Everyone diarizes differently and only some can be told to stop. max_speakers is its own term, separate from diarize, because a provider that finds however many speakers it thought it heard is not serving a request that said "two people".
  • Endpointing is either a pause or a judgement. Deepgram and Speechmatics take milliseconds of silence; AssemblyAI's streaming model decides a turn is over from the words. endpointing names which, and silence_ms only means anything for the first kind.
  • Vocabulary is not universally supported. Deepgram, AssemblyAI and Speechmatics take term lists; Scribe and Ink do not. A call full of drug names has to be routed, not hoped for.

What the router refuses to fake

A request's options become Terms(), and routing only considers models whose supports: lists every term asked for. A term nothing can serve is a 400 naming it, not a transcript that quietly lacks it. That is the whole design: being told is better than being answered wrongly.

So supports: is a promise about the client code, not about the vendor's docs. Today deepgram/flux-general-* declares [keyterms, endpointing], the Gemini, Grok and Muse live models declare [keyterms], and deepgram/nova-3 — the recorded path — declares the batch list: language detection, diarization, words, formatting, redaction, summary, entities, keyterms and channels. Everything else declares nothing, which means it serves the requests that ask for nothing extra.

Adding a term to a model means sending it in that provider's package under internal/stt first, then declaring it. Declaring it to make routing succeed is the one thing this design exists to prevent.

max_speakers is where refusing earns its keep: AssemblyAI caps at 10 and Scribe at 32, so a request for 16 speakers is a different set of candidates than a request for 8.

Adding an option

  1. A field on options.STT, with Merge and, if it is optional behaviour, a Term and a line in Terms(). Pointers, so "say nothing" and "turn this off" stay different.
  2. The same field on SttOptions, on its Go struct in internal/api. Then run go run ./cmd/openapi and regenerate all three clients.
  3. Read it in each provider that can express it, and declare it in supports:.
  4. A test that a provider which cannot express it refuses rather than drops it.

Subtitles are the exception worth knowing: output: srt is not a term, because rendering lines out of words and timings is something the router does itself once it has the timings.

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.