Text to speech (audio file)
ai_speechTurn up to 1,000 characters of text into natural speech as an audio file (base64, with its content type), in English, Spanish, French, Chinese, Japanese or Korean, with MeloTTS. Use for voice replies, audio notes, accessibility and phone or chat bots. Example: text=Your payment was received. Thank you!, lang=en. Price $0.003/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language: en, es, fr, zh, ja or ko (default en) | |
| text | Yes | Text to speak, up to 1,000 characters |