mlpeek: text to speech (6 languages, offline)
text_to_speechConvert text into spoken audio in 41 voices across six languages. Use it for voiceovers, accessibility, or audio versions of written content.
Instructions
mlpeek: Speak text aloud in 41 voices: English, Spanish, French, Hindi, Italian, Portuguese. For audio to text use transcribe_audio. Returns the text spoken as audio. Offline neural TTS (Kokoro-82M); the audio is a synthetic voice. At most 2,000 characters; 41 voices in 6 languages (the voice sets the language: write the text in it). Bad input is a 422, a busy or unavailable model a 503, a synthesis over the time limit a 504 (none charged). Save data_base64 to a file to play it, or send output "url" for a 24 h link. Typically 4-10 s for 200 characters (about 13 s of speech), up to about a minute for 2,000 characters. Price: USD 0.005. Free: 5 mlpeek calls per IP per UTC day. The submitted text is not logged; the result is kept only with output "url" (24 h). Docs: https://tanod.dev/learn/text-to-speech-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to speak, 1 to 2,000 characters, in the language of the chosen voice (English, Spanish, French, Hindi, Italian or Brazilian Portuguese). | |
| speed | No | Speaking rate, 0.5 to 2.0 (1.0 is normal). | |
| voice | No | Voice (41): the first letter is the language: a US English (af_heart default, af_bella, am_adam), b UK English (bf_emma, bm_george), e Spanish (ef_dora), f French (ff_siwis), h Hindi (hf_alpha, hm_omega), i Italian (if_sara, im_nicola), p Brazilian Portuguese (pf_dora, pm_alex); f = female, m = male. Write the text in the voice's language. | af_heart |
| format | No | Audio format: mp3, wav (16-bit PCM) or ogg (Opus). | mp3 |
| output | No | base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window. | base64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| bytes | No | ||
| chars | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| speed | No | ||
| voice | No | ||
| engine | No | ||
| format | No | ||
| sha256 | No | ||
| duration_s | No | ||
| expires_at | No | ||
| data_base64 | No | ||
| sample_rate | No | ||
| content_type | No |