Convert text to speech in 6 languages
ttsText-to-speech as base64 audio. Default: MeloTTS WAV, up to 2,000 chars, in English, Spanish, French, Chinese, Japanese or Korean, $0.002. quality "high": Deepgram Aura-2 natural English voices as MP3, up to 500 chars, $0.02. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); 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": "tts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | en, es, fr, zh, ja or ko (default en) | |
| text | Yes | Up to 2000 chars (500 with quality high) | |
| voice | No | quality high only: luna, asteria, athena, helena, hera, aurora, orion, apollo, arcas, atlas, hermes, zeus, draco, odysseus | |
| quality | No | standard (default, $0.002) or high (Aura-2 English, $0.02) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| mime | No | ||
| model | No | ||
| quality | No | ||
| audio_base64 | No |