Text to Speech
Turn text into natural English speech and get an MP3 back in seconds. 40 voices. Deepgram Aura 2.
POST /v1/audio/speak
- Price
- Each 1,000 characters costs $0.032. Your first 100 priced calls each day are free, so you can try it before adding credits.
- Freshness
- Computed fresh on every call.
- Answer
- Always
{ data, cost_usd, balance_usd, cached, request_id }.
Parameters
| Name | Type | Required | What it is | Example |
|---|---|---|---|---|
| textbody | string | yes | What to say. Up to 2,000 characters per call. | Hello from crypto2api. This is a short test of text to speech. |
| voicebody | string | no, default luna | Which voice. One of: amalthea, andromeda, apollo, arcas, aries, asteria, athena, atlas, aurora, callista, cora, cordelia, delia, draco, electra, harmonia, helena, hera, hermes, hyperion, iris, janus, juno, jupiter, luna, mars, minerva, neptune, odysseus, ophelia, orion, orpheus, pandora, phoebe, pluto, saturn, thalia, theia, vesta, zeus. | luna |
Try it
A real call. Your first 100 priced calls a day are free; after that it costs the price above. Edit anything and run it.
Response
Example data (the answer sits inside the envelope)
{
"data": {
"audio": {
"b64": "//NkxAAambo0AMJHKEIADM7jGCGYBcguQg42kY64…",
"mime": "audio/mpeg"
},
"duration_s": 7.704,
"voice": "luna",
"chars": 62
},
"cost_usd": 0.0324,
"balance_usd": "…",
"cached": false,
"request_id": "req_…"
}What the example answered when this page was built, shortened. Run it for a live answer.
Copy it
Runs as-is with your key in place of c2a_your_key. The MCP block gives an agent every endpoint in one server.
curl https://api.crypto2api.com/v1/audio/speak \
-H "Authorization: Bearer c2a_your_key" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello from crypto2api. This is a short test of text to speech.",
"voice": "luna"
}'