Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 69
  • 330 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-tts

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install openrouter-tts in Claude Code

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

A

No 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 →

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.

openrouter-tts Install

Add to stack

Loading.