router-sts
Skill8.2k starsChanged 58 days agoApache-2.0View on GitHub
What the speech-to-speech router can be asked for, what each vendor calls it, and what it refuses to fake. Read before adding an STS option or a speech-to-speech provider.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about GetStream/Agents
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.404 → 0.6.405”GitHub · Nov 30, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.403 → 0.6.404”GitHub · Nov 30, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.402 → 0.6.403”GitHub · Nov 29, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.399 → 0.6.402”GitHub · Nov 27, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.7.1 → 0.6.399”GitHub · Nov 27, 2026
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
- Nov 30, 2026agent-skills.github.getstream.agents: 0.6.404 → 0.6.405 — sudosubin/agents.nix0 reactions
- Nov 30, 2026agent-skills.github.getstream.agents: 0.6.403 → 0.6.404 — sudosubin/agents.nix0 reactions
- Nov 29, 2026agent-skills.github.getstream.agents: 0.6.402 → 0.6.403 — sudosubin/agents.nix0 reactions
- Nov 27, 2026agent-skills.github.getstream.agents: 0.6.399 → 0.6.402 — sudosubin/agents.nix0 reactions
- Nov 27, 2026agent-skills.github.getstream.agents: 0.7.1 → 0.6.399 — sudosubin/agents.nix0 reactions
3 more on GitHub
- Nov 25, 2026fix: retain 7 reviewed references that left discovery (Nov 25) — tekvisions/voice-index0 reactions
- Nov 24, 2026agent-skills.github.getstream.agents: 0.7.0 → 0.7.1 — sudosubin/agents.nix0 reactions
- Nov 17, 2026agent-skills.github.getstream.agents: init at 0.7.0 — sudosubin/agents.nix0 reactions
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/python.mdcCursor rule
- pr-reviewSkill
- typesafe-aiSkill
- vgpuSkill
- accelerate-sales-engineerSkill
- add-connectorSkill
- check_pricesSkill
- cliSkill
- commitSkill
- connectorsSkill
- dashboardSkill
- decision_modelSkill
- deploySkill
- docsSkill
- generative-uiSkill
- good_morningSkill
- goSkill
- go-testingSkill
- integrate_new_modelsSkill
- llm-interfaceSkill
- loop_performance_benchSkill
- migrate-to-accelerateSkill
- new_modelsSkill
- paginationSkill
- parallel-agentsSkill
- performance_benchmarkSkill
- phonecheckSkill
- pricingSkill
- prospect-competitor-researchSkill
- provider_auditSkill
- prSkill
- querySkill
- refresh_model_statsSkill
- router-detectionSkill
- router-interfaceSkill
- router-llmSkill
- router-searchSkill
- router-sttSkill
- router-ttsSkill
- scheduled-tasksSkill
- sdk-dartSkill
- sdk-dotnetSkill
- sdk-goSkill
- sdk-jsSkill
- sdk-kotlinSkill
- sdk-phpSkill
- sdk-rubySkill
- sdk-rustSkill
- sdkSkill
- sdk-swiftSkill
- securitySkill
- sttSkill
- telnyxSkill
- ttsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 65
interruptedmeans one thing: Every vendor reports the caller talking over the reply its own way. - Distinctive: line 76
Temperature is not here: Only Nova Sonic, which is not yet a provider, takes it on a live session, and a knob the others ignore in silence …
- Very specific: line 134
Read it in each provider that can express it, refuse it where the vendor has no such thing, and declare it in supports:.
≈ “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.
Files
Routing speech to speech
The per-modality half of router-interface. The vocabulary is
options.STS; who can express what is
declared per model in router.yaml;
the contract a provider implements is
sts.STS.
One path. A conversation is a socket at /v1/sts/stream, and there is no batch half: every
entry is realtime: true. The model on the other end is the voice activity detector, the
turn detector, the transcriber and the voice all at once, so nothing in front of it may act
as one of them. The caller's audio goes up at 16 kHz mono; the model's comes back at
whatever it speaks at, 24 kHz for all of these, under a header that says which reply each
chunk belongs to.
The four, and what each calls the same thing
| Option | OpenAI gpt-realtime-2 | xAI grok-voice-think-fast-2.0 | Alibaba qwen3.5-omni-plus-realtime | Google gemini-3.1-flash-live-preview |
| protocol | Realtime events over a socket | the same events; xAI documents it as OpenAI-compatible | the same events, older spellings kept | BidiGenerateContent, the Live API |
| audio in / out | 24 kHz / 24 kHz | 24 kHz / 24 kHz | 16 kHz / 24 kHz | 16 kHz / 24 kHz |
voice | audio.output.voice (marin, cedar, …); locked after the first reply | voice (ara, rex, sal, eve, leo) | voice (Cherry, …) | speechConfig.voiceConfig.prebuiltVoiceConfig.voiceName (Kore, Leda, …) |
instructions | instructions, changeable any time | instructions, changeable | instructions, set once before the first audio | systemInstruction, set once at setup |
turn_detection: server_vad | audio.input.turn_detection.type: server_vad | turn_detection.type: server_vad | turn_detection.type: server_vad | realtimeInputConfig.automaticActivityDetection, always on |
turn_detection: semantic | semantic_vad, with eagerness | — | — | — |
turn_detection: none | turn_detection: null plus manual commits | the same | turn_detection: null | automaticActivityDetection.disabled plus activityStart/activityEnd |
silence_ms, prefix_padding_ms | silence_duration_ms, prefix_padding_ms | the same | the same | silenceDurationMs, prefixPaddingMs |
| threshold | threshold, a float | threshold | threshold | startOfSpeechSensitivity / endOfSpeechSensitivity, named levels |
interrupt_response | interrupt_response | interrupt_response | — | the model always stops when it hears the caller |
input_transcript | audio.input.transcription: {model}, once, after the stop | input_audio_transcription: {}; restates the turn as it grows, settled by the stop | always on, gummy-realtime-v1 | inputAudioTranscription: {}, in pieces |
output_transcript | always sent with audio | always sent | always sent | outputAudioTranscription: {} |
tools | tools: [{type: function, …}], changeable | the same | — | tools: [{functionDeclarations}], set once; synchronous only |
text | conversation.item.create + response.create | the same | — | clientContent with turnComplete: true |
images | conversation.item.create with input_image | — | input_image_buffer.append, after audio, ≤ 2 fps | realtimeInput.video, ≤ 1 fps |
| interrupt from our side | response.cancel + conversation.item.truncate at the ms heard | the same | response.cancel | nothing: the model is not told, the rest of the reply is dropped here |
| usage | response.done.usage, audio and text tokens apart | not reported | response.done.usage | usageMetadata, by modality |
| session limit | 60 min | — | — | 15 min; the connection is cut every ~10 and resumed with a handle |
What the table is saying:
- Three of the four speak one wire. xAI and Alibaba send OpenAI's event names, so
internal/sts/openairealtimeis one package registered three times, differing in aVendorvalue that says how the session frame is spelled and what rate to feed. Gemini is its own package, and shares no code with the transcriber on the same socket on purpose: the transcriber must never reconnect, and a conversation must. - Only one of them reads the words.
semantic_turnsis a term because a caller who asked for it and got a silence timer cannot hear the difference. Nobody here declaresmanual_turns: the contract has no method for a manual commit yet, and declaring a term the code cannot send is the one thing terms exist to prevent. - The threshold has two shapes. A float at three vendors and two named levels at the
fourth, so it is not in the shared vocabulary. It goes in
overwrites, spelled the way the vendor spells it. - What is set once cannot be set again. Gemini and Qwen take instructions and tools at
setup.
SetInstructionsandSetToolsreturnErrInstructionsFixedandErrToolsFixedthere rather than pretending, andCapabilities.InstructionsMidSessionsays which is which before a session is opened. Tools that a model takes only at setup travel on the request rather than in the option block, which is whystsrouter.Requestand thestartframe both carry them. interruptedmeans one thing. Every vendor reports the caller talking over the reply its own way; the Python plugins turned some of them into two events and had to special-case the duplicate. HereSpeechStartedsays only that the model heard someone, andResponseComplete{Interrupted: true}is the one signal a consumer drops its buffer on. The router session then drops any audio of that generation still arriving, because the model learns of a barge-in a round trip after the caller.- Transcripts arrive three ways. OpenAI writes the turn down once, after the caller
stops. xAI writes it down about once a second while they talk, each report restating the
turn from its beginning, so those are
replacementtranscripts and the one after the stop is thefinal, the way the Grok transcriber already works. Gemini sends pieces that add up, settled when the model begins to speak, since its API has no stop event at all. - Temperature is not here. Only Nova Sonic, which is not yet a provider, takes it on a live session, and a knob the others ignore in silence is worse than one that is absent.
Model ids drift
gemini-3.1-flash-live-preview replaced gemini-2.5-flash-native-audio-preview-12-2025;
the older id still answers but is not what Google points at. gemini-3.8-live has since
superseded 3.1 and makes tools non-blocking by default, and gemini-3.8-live-extended-thinking
is a separate id, not a setting: it refuses a setup without a thinkingLevel and sends
turnComplete with interactionStatus: IN_PROGRESS after a filler, which is not the end of
the reply. The table's Gemini column describes 3.1. gpt-realtime-2 is the
family; dated snapshots and gpt-realtime-2.1 share its capabilities. grok-voice-3.0
replaced grok-voice-think-fast-2.0 on the same socket and events. Check the Artificial Analysis
speech-to-speech board before adding a model: quality and time-to-first-audio move
between releases, and the sts-fast pin follows them.
What the router refuses to fake
Options become Terms(), and only models whose supports: lists every term asked for are
candidates. A term nothing can serve is a 400 naming it, not a session that quietly lacks
it. images is not a term: it is an input modality, gated by input_modalities: [image]
the way vlm gates a text model, and sts-vision is the alias that requires it.
full_duplex means a model can receive caller audio while producing its own audio; realtime
transport or asynchronous tools alone do not establish it.
supports: is a promise about the Go code, checked twice. stsrouter.New walks the config
at boot against each provider package's CapabilitiesFor and refuses an entry that
promises what the package cannot send; the routing core's Validate hook asks the same of
the provider actually built, for a build that registered something the tables do not know.
Voices are not resolved against the voice catalogue. None of these models takes a cloned
voice, so a custom: name is refused up front rather than looked up at every candidate.
Billing
One row per reply, settled by ResponseComplete. AudioMs is the caller's audio the
session forwarded since the last reply, which is the unit a transcriber bills by and the
one number every vendor lets us count ourselves. Tokens are what the vendor reported: the
totals in the row's columns, and the split by modality on sts.Usage, which the session
writes into meters (each input modality net of its cached part). A split replaces the
totals in the price, so OpenAI Realtime and Gemini Live are priced by the rates their
prices/vendor.json entries give each modality, and a vendor that reports no split by its per-token rates
on the totals. A provider that fills the split must put every billed token in it, since
whatever it leaves out is not priced: Gemini bills its details, so what they leave out of
the prompt is only shown, as attributes.prompt_tokens_not_in_details, and what they
leave out of the response is billed as text. Thinking goes in ReasoningTokens, shown as
attributes.reasoning_tokens and never priced on its own.
Adding an option
- A field on
options.STS, withMerge,Validateand, if it is optional behaviour, aTermand a line inTerms(). Pointers, so "say nothing" and "turn this off" stay different. - The same field on
StsOptions, on its Go struct ininternal/api. Then rungo run ./cmd/openapiand regenerate all five sides. - A field on
sts.Capabilitiesand a case inExpresses, so a config can only declare it for a model whose package reports it. - Read it in each provider that can express it, refuse it where the vendor has no such
thing, and declare it in
supports:. - A test that a provider which cannot express it refuses rather than drops it.
Adding a provider
One package under internal/sts, implementing
sts.STS, with a CapabilitiesFor(model) table the router can read before a session
exists. Three test files: a no-network handleMessage test fed the vendor's own frames, a
fake-socket test asserting the setup frame and the interrupt on the wire, and an
integration_test.go embedding
stssuite.Suite, which speaks mia.mp3 at
the model and holds it to an accurate transcript, audio at the declared rate, a clean
barge-in, a typed turn, a tool round and an honest answer about mid-session instructions.
Register it in stsrouter/registry.go
and add its capabilitiesFor case, then declare it in router.yaml with a data_policy,
which every model that hears the caller must have.
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.

