openrouter-tts
Skill by OpenRouterTeam
Generates speech audio from text using OpenRouter's text-to-speech API. Built for users who need narration, voiceovers, audiobook clips or read-aloud audio files.
Install openrouter-tts
Built from the published package, never by AI.
git clone --depth 1 https://github.com/OpenRouterTeam/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/openrouter-tts ~/.claude/skills/openrouter-ttsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/OpenRouterTeam/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/openrouter-tts ~/.gemini/antigravity-cli/skills/openrouter-ttsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The openrouter-tts skill lets an AI assistant generate speech audio from text by calling OpenRouter's text-to-speech endpoint, POST /api/v1/audio/speech, with curl. The endpoint is OpenAI-compatible, so the OpenAI SDKs can be pointed at OpenRouter's base URL. The response body is raw audio bytes, which the skill writes to a file whose extension matches the chosen format, either mp3 or pcm.
The skill also explains how to list speech models and their supported voices from the models endpoint, pass OpenAI-specific options such as tone or pacing, and split long text into chunks that are joined with ffmpeg. It is aimed at users who want narration, voiceovers, audiobook clips or audio files from text and who have an OpenRouter API key.
Written from the project's SKILL.md and checked against it.
What it can do
- Single speech requestSends text to the speech endpoint and saves the returned audio as mp3 or pcm.
- Model and voice discoveryLists speech models and their supported_voices using the models endpoint filter.
- Provider optionsPasses OpenAI instructions to steer tone, accent, pacing or emotion.
- Speed controlSets a playback multiplier, which the source says OpenAI TTS honors.
- OpenAI SDK usageShows Python and TypeScript examples that use the OpenAI SDK with OpenRouter's base URL.
- Long input handlingSplits text at sentence or paragraph boundaries and joins the chunks with ffmpeg.
- Troubleshooting guideCovers format mismatches, wrong model slugs and ZodError responses.
What you need
- OpenRouter API key set as OPENROUTER_API_KEY
- curl
- jq
- ffmpeg (for joining long audio)
- Python or TypeScript with the OpenAI SDK (optional)
Try asking
- Narrate this article as an mp3 file using a warm, slow voice.
- List the voices available for the OpenAI speech model on OpenRouter.
- Turn this chapter into an audiobook clip, splitting it into chunks and joining them.
Good to know
- Each request has a character limit, usually a few thousand characters.
- The speed option is honored by OpenAI TTS; other providers may ignore it.
- Voices are provider-specific and cannot be used across providers.
- The default response format is pcm, so set response_format explicitly.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/openrouter-tts/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to openrouter-tts
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
openrouter-tts: common questions
What audio formats does it produce?
It supports mp3 and pcm. The source says mp3 suits files people will listen to or share, while pcm is for raw audio or streaming pipelines.
Does it work with the OpenAI SDK?
Yes. The endpoint mirrors OpenAI's /audio/speech, so the OpenAI Python and TypeScript SDKs work when their base URL is set to https://openrouter.ai/api/v1.
Why does my audio file not play?
The source says this is usually a format or extension mismatch, such as pcm bytes saved as .mp3. Check the Content-Type header and use a matching extension.
How do I install openrouter-tts?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is openrouter-tts free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is openrouter-tts safe to use?
It scores 69 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to openrouter-tts?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
