Text-to-speech (Aura-2 / MeloTTS)
ai_speechUse when an agent must be heard and not read, in English, Spanish, French, Chinese, Japanese or Korean: Deepgram Aura-2 for English and Spanish, MeloTTS for the rest. Returns a hosted audio URL valid for 24 hours (MP3 for English and Spanish, WAV otherwise) plus its size; add inline=true to also get the base64. Up to 2000 characters per call. You are only charged if the audio is delivered. No API key, no account. $0.01 per call, paid over x402 (USDC).
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_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | en, es, fr, zh, ja or ko. Default en. | |
| text | Yes | What to say, up to 2000 characters. | |
| inline | No | Also return the WAV as base64. Default false. |