Turns text into speech with a Cloudflare Workers AI TTS
agent_intel_multilingual_voice_ttsTurns text (up to 1000 characters) into speech with a Cloudflare Workers AI TTS model, in English, Spanish, French or Japanese. Returns base64 audio as the model gives it. German and Turkish are not offered: the model used here does not list them. Requires the env.AI binding. Price: $0.003 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "agent_intel_multilingual_voice_tts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | en, es, fr or ja (default en) | |
| text | Yes | Text to speak, 1 to 1000 characters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||