9router-tts
Skill13 starsChanged 5 months agoMITView on GitHub
Text-to-speech via 9Router /v1/audio/speech using OpenAI / ElevenLabs / Deepgram / Edge TTS / Google TTS / Hyperbolic / Inworld voices. Use when the user wants to convert text to speech, generate audio, voiceover, narrate, or read text aloud.
- Reads credentials
- Sends data out
3 other projects use a version of this.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- decolua/9routerword for word, first seen Sep 21, 2026
- OTheMandaloriano/XRouterword for word, first seen Aug 14, 2026
- Vincent-A-Yang/OninOneProxyword for word, first seen Aug 4, 2026
Other versions3 projects use a version of this.
Word for word · 3
- decolua/9router★ 30k100% same
- Vincent-A-Yang/OninOneProxy★ 4100% same
- OTheMandaloriano/XRouter★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- 9router-chatSkill
- 9router-embeddingsSkill
- 9router-imageSkill
- 9routerSkill
- 9router-sttSkill
- 9router-web-fetchSkill
- 9router-web-searchSkill
- multi-brainSkill
- using-superpowersSkill
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
- Very specific: line 60
Default → raw audio bytes (Content-Type audio/mp3).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
9Router — Text-to-Speech
Requires NINEROUTER_URL (and NINEROUTER_KEY if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup.
Discover
# 1) List models
curl $NINEROUTER_URL/v1/models/tts | jq '.data[].id'
# 2) Per-model metadata (params, voicesUrl if voice-by-id)
curl "$NINEROUTER_URL/v1/models/info?id=el/eleven_multilingual_v2"
# 3) List voices (elevenlabs, edge-tts, deepgram, inworld, local-device). Optional ?lang=vi
curl "$NINEROUTER_URL/v1/audio/voices?provider=edge-tts&lang=vi" | jq '.data[].model'model field in /v1/audio/speech = voice ID directly (e.g. edge-tts/vi-VN-HoaiMyNeural, el/<voice_id>, or openai/tts-1 model+default voice).
Endpoint
POST $NINEROUTER_URL/v1/audio/speech
| Field | Required | Notes |
model | yes | voice ID from /v1/models/tts |
input | yes | text to speak |
Query ?response_format=mp3 (default, raw bytes) or ?response_format=json ({audio: base64, format}).
Examples
Save MP3:
curl -X POST "$NINEROUTER_URL/v1/audio/speech" \
-H "Authorization: Bearer $NINEROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"openai/tts-1","input":"Hello world"}' \
--output speech.mp3JS (save file):
import { writeFile } from "node:fs/promises";
const r = await fetch(`${process.env.NINEROUTER_URL}/v1/audio/speech`, {
method: "POST",
headers: { "Authorization": `Bearer ${process.env.NINEROUTER_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ model: "el/eleven_multilingual_v2", input: "Xin chào" }),
});
await writeFile("speech.mp3", Buffer.from(await r.arrayBuffer()));Response shape
Default → raw audio bytes (Content-Type audio/mp3).
?response_format=json:
{ "audio": "SUQzBAAAA...", "format": "mp3" }Provider quirks (model format)
| Provider | model format | Notes |
openai | tts-1/alloy (model/voice) or just voice | Default model gpt-4o-mini-tts |
elevenlabs | <model_id>/<voice_id> or <voice_id> | Default model eleven_flash_v2_5; list voices in Dashboard |
openrouter | openai/gpt-4o-mini-tts/alloy | Streamed via chat-completions audio modality |
edge-tts | voice id e.g. vi-VN-HoaiMyNeural | noAuth; default vi-VN-HoaiMyNeural |
google-tts | language code e.g. en, vi | noAuth |
local-device | OS voice name (say -v ? / SAPI) | noAuth; needs ffmpeg |
deepgram | aura-asteria-en etc | Token auth |
nvidia, inworld, cartesia, playht | model/voice | Provider-specific auth header |
coqui, tortoise | speaker / voice id | Localhost noAuth |
hyperbolic | model id | Body = {text} only |
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.

