Skip to content
Back to skills

Text To Speech

ASecurity

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).

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsapi

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add dashscope/dashscope-agent-tools-python --skill text-to-speech --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Text To Speech?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Text To Speech
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dashscope-text-to-speech/badge)](https://www.skillsdirectory.com/skills/dashscope-text-to-speech)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.