Text-to-speech (Aura-2 / MeloTTS)
ai_speechTurns text into natural speech in English, Spanish, French, Chinese, Japanese or Korean in one or two seconds: 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).
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. |