Keirouter Tts
mydisha/keirouter
Text-to-speech via KeiRouter /v1/audio/speech using OpenAI / ElevenLabs / Deepgram / Edge TTS / Google TTS / Inworld voices.
Turns text into spoken audio through a 9Router server, choosing among voices from OpenAI, ElevenLabs, Deepgram, Edge TTS and other providers.
$ npx skills add decolua/9router --skill 9router-tts -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install decolua/9router 9router-tts --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/9router-tts .claude/skills/9router-tts && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "9router-tts" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-tts into .claude/skills/9router-tts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-tts", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/decolua/9router/tree/master/skills/9router-ttsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add decolua/9router --skill 9router-tts -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install decolua/9router 9router-tts --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/9router-tts .agents/skills/9router-tts && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "9router-tts" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-tts into .agents/skills/9router-tts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-tts", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add decolua/9router --skill 9router-tts -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install decolua/9router 9router-tts --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/9router-tts .cursor/skills/9router-tts && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "9router-tts" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-tts into .cursor/skills/9router-tts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-tts", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/decolua/9router.git --path skills/9router-tts--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add decolua/9router --skill 9router-tts -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install decolua/9router 9router-tts --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/9router-tts .gemini/skills/9router-tts && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "9router-tts" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-tts into .gemini/skills/9router-tts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-tts", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install decolua/9router 9router-ttsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add decolua/9router --skill 9router-tts -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/9router-tts .github/skills/9router-tts && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "9router-tts" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-tts into .github/skills/9router-tts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-tts", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add decolua/9router --skill 9router-tts -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install decolua/9router 9router-tts --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/9router-tts .opencode/skills/9router-tts && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "9router-tts" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-tts into .opencode/skills/9router-tts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-tts", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
9router-ttsTurns text into spoken audio through a 9Router server, choosing among voices from OpenAI, ElevenLabs, Deepgram, Edge TTS and other providers.
The agent calls a running 9Router instance to produce speech. It first lists the available voices from the `/v1/models/tts` endpoint, then posts the text to `/v1/audio/speech` with the chosen voice ID in the `model` field. By default the reply is raw MP3 bytes, and adding `?response_format=json` returns base64 audio together with its format.
Voice naming differs by provider: OpenAI takes a model and voice pair, ElevenLabs a model ID and voice ID, and Deepgram uses token auth. Edge TTS and Google TTS need no credentials, and a local-device option uses the operating system voice and requires `ffmpeg`. The skill gives curl and JavaScript examples that save the audio to a file.
Read from SKILL.md and the folder at commit ce4460e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
curljqFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
NINEROUTER_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
9Router Text to Speech loads about 765 tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 156 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from decolua/9router at commit ce4460e, republished under its MIT licence (© decolua). 156 words, ~765 tokens.
.claude/skills/9router-tts/SKILL.md (or your agent's skills folder).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.
# 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).
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}).
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()));Default → raw audio bytes (Content-Type audio/mp3).
?response_format=json:
{ "audio": "SUQzBAAAA...", "format": "mp3" }| 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 |
© decolua, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/9router-tts of decolua/9router.
Open the folder on GitHubat commit ce4460e
9Router Text to Speech next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| 9Router Text to Speech this skilldecolua/9router | 31k | — | ~765 | Automated safety check: Pass | MIT | |
| Keirouter Ttsmydisha/keirouter | 147 | — | ~599 | Automated safety check: Pass | MIT | |
| Voice AI Developmentdavila7/claude-code-templates | 33k | 5 repos | ~2.1k | Automated safety check: Pass | MIT | |
| Video Translatorshang-zhu/violin | 1.1k | — | ~1k | Automated safety check: Notes | MIT | |
| Super Video MakerBomx/super-video-maker-skill | 310 | — | ~11k | Automated safety check: Notes | None | |
| Motion Videobestagentkits/motion-video-skill | 118 | — | ~1.5k | Automated safety check: Pass | MIT |
mydisha/keirouter
Text-to-speech via KeiRouter /v1/audio/speech using OpenAI / ElevenLabs / Deepgram / Edge TTS / Google TTS / Inworld voices.
davila7/claude-code-templates
Expert in building voice AI applications - from real-time voice agents to voice-enabled apps.
shang-zhu/violin
Dub a video into another language and generate subtitles using the default Together + Cartesia stack.
Bomx/super-video-maker-skill
End-to-end AI video production skill for agentic frameworks.
bestagentkits/motion-video-skill
Produce beat-synced 1080p motion-graphic videos in HyperFrames (HTML + GSAP) with an AI voice-over, Vietnamese karaoke captions, SFX and generated music, in one of two proven styles (glass keynote…
amd/skills
Makes this agent generate images, transcribe audio, and synthesize speech on the user's own machine through a local Lemonade Server instead of a paid cloud API.
decolua/9router
Sets up access to the 9Router AI gateway, an OpenAI-compatible REST endpoint for chat, images, speech, embeddings, web search and web fetch, and indexes its capability skills.
decolua/9router
Sends chat and code-generation requests through a 9Router gateway using OpenAI or Anthropic message formats, with streaming and auto-fallback combos.
decolua/9router
Generates vector embeddings through the 9Router /v1/embeddings endpoint, using models from providers such as OpenAI, Gemini, Mistral and Voyage for RAG and semantic search.
decolua/9router
Generates images through a 9Router gateway's image endpoint, with model discovery, the request fields and per-provider quirks for OpenAI, Gemini, MiniMax and others.
decolua/9router
Transcribes audio files into text or subtitles through 9Router's Whisper-compatible endpoint, using models from OpenAI, Groq, Gemini, Deepgram and others.
decolua/9router
Submits text-to-video or image-to-video jobs to xAI Grok Imagine through 9Router, then polls the job and downloads the finished MP4.
Works with
Categories
Turns text into spoken audio through a 9Router server, choosing among voices from OpenAI, ElevenLabs, Deepgram, Edge TTS and other providers. The agent calls a running 9Router instance to produce speech. It first lists the available voices from the `/v1/models/tts` endpoint, then posts the text to `/v1/audio/speech` with the chosen voice ID in the `model` field.
9Router Text to Speech fits situations like: converting a script or article into an MP3 voiceover; reading a block of text aloud with a chosen provider voice; listing which text-to-speech voices a 9Router server offers.
Run `npx skills add decolua/9router --skill 9router-tts -a claude-code`. Or copy the skill folder (skills/9router-tts in decolua/9router) into .claude/skills/9router-tts in your project. Claude Code loads it when a task matches its description.
Run `npx skills add decolua/9router --skill 9router-tts -a codex`. Or copy the skill folder (skills/9router-tts in decolua/9router) into .agents/skills/9router-tts in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add decolua/9router --skill 9router-tts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/9router-tts, .gemini/skills/9router-tts, .github/skills/9router-tts and .opencode/skills/9router-tts in your project.
Going by SKILL.md and its folder, 9Router Text to Speech needs the command-line tools its instructions call (curl and jq) and credentials named NINEROUTER_KEY. Our summary lists: A running 9Router server, with its address in `NINEROUTER_URL`; `NINEROUTER_KEY` when the server has authentication enabled; `ffmpeg` for the local-device voice option.
SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
9Router Text to Speech is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 765 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with 9Router Text to Speech: Keirouter Tts (mydisha/keirouter, 147 stars), Voice AI Development (davila7/claude-code-templates, 33k stars), Video Translator (shang-zhu/violin, 1.1k stars) and Super Video Maker (Bomx/super-video-maker-skill, 310 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
decolua (a GitHub user) maintains it in decolua/9router, which has 30,536 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 8, 2026.
Source: decolua/9router on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.