Text to speech (Qwen-TTS)
text_to_speechSynthesize speech from text via Qwen-TTS using a short refer_audio sample (http(s) URL). Pass text (<= 5000) + refer_audio (+ recommended refer_audio_text) to start, or job_id to poll. voiceId library voices are not exposed this wave. Cost: 2 credits per call. Compliance: Use only on material you own or are explicitly licensed/authorized to generate or remix. Do not generate or redistribute copyrighted music, voice likenesses, or trademarked audio without permission. Output URLs have a limited TTL and must not be abused for bulk scraping or redistribution. Calls are rate-limited/metered by mcp-credit-gateway and require a valid sk_live_ key. (仅处理自有或已获授权素材;禁止滥用生成/二创他人受版权保护的音乐或声音;输出有 TTL;调用限频。)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "text_to_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to synthesize (<= 5000 chars). Required to start; omit when polling with `job_id` only. | |
| speed | No | Optional speaking speed (0.5–2). | |
| job_id | No | Existing Qwen-TTS job id. Polling never creates a new upstream job. | |
| language | No | Optional language hint (default Auto upstream). | |
| refer_audio | No | Public http(s) reference voice sample URL (<= 2048 chars). Required with `text` to start (preferred over voiceId). Use a short sample of a voice you own/are authorized to use. | |
| wait_seconds | No | How long to wait for a result, 0–55 seconds (default 30). | |
| idempotency_key | No | Optional caller correlation key. Billing is handled by mcp-credit-gateway. | |
| refer_audio_text | No | Transcript of the reference audio (strongly recommended, <= 2000 chars). |