ai_text_to_speech
Text to speech: up to 1,000 characters spoken as a WAV file (22 kHz mono), returned as base64 in JSON. Languages: English, Spanish, French, Chinese, Japanese, Korean (MeloTTS). Costs $0.01 USDC on Base via x402.
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": "ai_text_to_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language (default en) | |
| text | Yes | Text to speak, up to 1,000 characters |