Text To Speech
text_to_speechText to natural speech with Deepgram Aura 2: up to 500 characters (about 30 seconds of speech) in one of 40 English voices, returned as an MP3 or WAV file in base64. Costs USD 0.02 per call, paid with x402 (USDC on Base); calls that fail 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": "text_to_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | What to say, up to 500 characters | |
| voice | No | Voice (default asteria) | |
| format | No | Audio format (default mp3) |