9router-tts

Solid

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.

AI & Automation 17,320 stars 2650 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 ```bash # 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: ```bash 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.mp3 ``` JS (save file): ```js import { writeFile } from "node:fs/promises"; const r = await fetch(`${process.env.NINEROUTER_URL}/v1/audio/speech`, { method: "POST", headers: { "Authorization": `Bearer ${process...

Details

Author
decolua
Repository
decolua/9router
Created
5 months ago
Last Updated
6 days ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category