Text to Speech in Claude Code (MCP Setup in 1 Command)
Claude Code + AnyToSpeech

Text to speech in Claude Code

Have Claude Code generate the audio your project needs (narration, onboarding voice-overs, game lines, release-note podcasts) and save the files straight into your repo.

Can Claude Code make audio files?

Not by itself. Add the AnyToSpeech MCP server with one command and Claude Code can generate MP3s in 200+ voices and save them in your project. If you only want to hear Claude Code when it finishes, that's a hook with your system's speech, not MCP.

Example

A release-notes clip

Real audio made by AnyToSpeech from the script Claude Code wrote from a changelog.

Claude Code + AnyToSpeech
Read CHANGELOG.md, write a 20-second spoken summary of v2.4 and save it as docs/release-2.4.mp3.
AnyToSpeech · speech_synthesize
voice: "Puck" · language: "en-US"
Saved docs/release-2.4.mp3 (15 s).

The script

Version two point four is out. Exports are now three times faster, dark mode finally reaches the settings page, and you can undo a delete for thirty seconds. We also fixed the bug that logged some of you out on Mondays. Update now, and tell us what you think.
Made with the voice "Puck".
Setup

Set it up

  1. Add the server

    In your terminal, run the command below. It adds AnyToSpeech as a remote MCP server for your user.

  2. Sign in

    Start Claude Code, type /mcp, choose anytospeech and Authenticate. Your browser opens; sign in to AnyToSpeech and click Allow.

  3. Ask for audio

    Ask Claude Code for what you need. It gets a download link for each file and can save it into your project.

Terminal

claude mcp add --transport http --scope user anytospeech https://anytospeech.com/api/mcp
Prompts

Prompts to try

“Generate voice-overs for every string in locales/en/tutorial.json and save them as MP3s.”
“Make 10 short NPC lines for the tavern scene in a gruff Scottish voice.”
“Turn this week's merged PRs into a 2-minute two-host podcast for the team.”
Good to know

What it costs and what to expect

FAQ

Frequently asked questions

Does this make Claude Code talk to me?

No, it creates audio files. To hear a sound or a spoken line when Claude Code finishes, use a Claude Code hook that runs your system's text-to-speech (for example say on macOS).

Does it work in Grok Build (formerly Cursor) or VS Code too?

Yes. See the Grok Build guide; VS Code uses the same server URL.

Keep going

Related guides

Try the AnyToSpeech connector

Free account, no API key, about 2 minutes to connect.

Create a free account Try voices on the website