Text to sound effect (TangoFlux)
text_to_sound_effectGenerate a short sound-effect WAV from a text prompt via TangoFlux (async create + result poll). Pass prompt (<= 2000 chars) with optional duration (default 10s) and steps (default 25); the call waits up to wait_seconds (default 30, max 55) and returns job_id if still running. Poll by calling again with only job_id. Returns audio_url when done. Cost: 2 credits per call, charged by mcp-credit-gateway before forwarding. 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_sound_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Sampling steps (10–100, default 25). | |
| job_id | No | Existing TangoFlux job id from a previous call. Polling never creates a new upstream job. | |
| prompt | No | Text description of the sound effect to generate (<= 2000 chars). Required to start a new job; omit when polling with `job_id` only. | |
| duration | No | Target duration in seconds (1–30, default 10). | |
| wait_seconds | No | How long to wait for a result, 0–55 seconds (default 30). On timeout the call returns a job_id to poll. | |
| idempotency_key | No | Optional caller correlation key, echoed in the result. Billing is handled by mcp-credit-gateway. |