Synthesize speech from text using DashScope/Bailian (CosyVoice TTS). Use when the user asks to read text aloud, generate speech, make a voiceover or audio clip, or convert text to speech (TTS).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Text To Speech?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/dashscope-text-to-speech)
---
description: Synthesize speech from text using DashScope/Bailian (CosyVoice TTS). Use when the user asks to read text aloud, generate speech, make a voiceover or audio clip, or convert text to speech (TTS).
---
# Text to speech (DashScope)
Use the `synthesize_speech` MCP tool from the dashscope server to turn text
into a spoken audio clip.
## How
1. Call `synthesize_speech` with:
- `text`: what to speak (keep the user's wording and language).
- `model` (optional): default `cosyvoice-v2`.
- `voice` (optional): default `longxiaochun_v2`. Pick another voice only if
the user asks.
- `format` (optional): e.g. `mp3`, `wav`. Omit to use the model default.
- `sample_rate` (optional): only if the user needs a specific rate.
2. This is a single synchronous request. It returns `audio_url` plus
`expires_at`. Present the URL to the user. **The URL is temporary** — if
the user wants to keep the audio, download it to a local file.
## Errors
- Missing/rejected key: ensure `DASHSCOPE_API_KEY` is set in the MCP server
environment (Claude Code: `/plugin configure dashscope`).
- "no audio" returned: the text may be empty or the voice/model rejected it;
check the text and try the default voice.
- Throttling: wait briefly and retry.