Kokoro TTS
High-quality multilingual text-to-speech synthesis.
Synthesize
Generate speech audio from text input.
/v1/ai:kokoro-tts/synthesizeParameters
| Name | Type | In | Description |
|---|---|---|---|
| text | string | body | Text untuk di-convert ke speech. Optimal untuk teks English (US/UK accent). Max 2000 chars. Required. |
| voice | enum | body | Voice ID (28 pilihan). Prefix = aksen+gender: af=American Female, am=American Male, bf=British Female, bm=British Male. American female: af_heart (flagship), af_bella, af_nicole, af_aoede, af_kore, af_sarah, af_nova, af_sky, af_alloy, af_jessica, af_river. American male: am_michael, am_fenrir, am_puck, am_echo, am_eric, am_liam, am_onyx, am_santa, am_adam. British female: bf_emma, bf_isabella, bf_alice, bf_lily. British male: bm_george, bm_fable, bm_lewis, bm_daniel. Default af_heart. One of af_heart, af_bella, af_nicole, af_aoede, af_kore, af_sarah, af_nova, af_sky, af_alloy, af_jessica, af_river, af_jadzia, am_michael, am_fenrir, am_puck, am_echo, am_eric, am_liam, am_onyx, am_santa, am_adam, bf_emma, bf_isabella, bf_alice, bf_lily, bm_george, bm_fable, bm_lewis, bm_daniel. |
| speed | number | body | Kecepatan bicara (multiplier). Range 0.5 (lambat) - 2.0 (cepat). Default 1.0. |
Example response
{"project":"ai:kokoro-tts", "data": {"text":"Halo, perkenalkan saya Zapi AI. Senang berkenalan dengan Anda.", "audio": {"url":"https://remsky-kokoro-tts-zero.hf.space/gradio_api/file=/tmp/gradio/8178a9a13fceab0fd38262452af3118b8ca01d104ed3ae4fd6ba2bc8f115f81b/audio.wav","mimeType":"audio/wav" },"speed":1,"voice":"af_bella","provider":"kokoro-tts" },"timestamp":"2026-07-10T05:18:18Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Try it
Live request with your key
const data = await client.run( "ai:kokoro-tts", "synthesize", { text: "Hello! This is a short speech sample rendered in real time.", voice: "af_heart", speed: 1 });
Kokoro TTS
High-quality multilingual text-to-speech synthesis.
Generate speech audio from text input.
/v1/…kokoro-tts/synthesizeTry it
Parameters
text
string · body · required
Text untuk di-convert ke speech. Optimal untuk teks English (US/UK accent). Max 2000 chars.
voice
enum · body · optional
Voice ID (28 pilihan). Prefix = aksen+gender: af=American Female, am=American Male, bf=British Female, bm=British Male. American female: af_heart (flagship), af_bella, af_nicole, af_aoede, af_kore, af_sarah, af_nova, af_sky, af_alloy, af_jessica, af_river. American male: am_michael, am_fenrir, am_puck, am_echo, am_eric, am_liam, am_onyx, am_santa, am_adam. British female: bf_emma, bf_isabella, bf_alice, bf_lily. British male: bm_george, bm_fable, bm_lewis, bm_daniel. Default af_heart.
speed
number · body · optional
Kecepatan bicara (multiplier). Range 0.5 (lambat) - 2.0 (cepat). Default 1.0.
Example response
{"project":"ai:kokoro-tts", "data": {"text":"Halo, perkenalkan saya Zapi AI. Senang berkenalan dengan Anda.", "audio": {"url":"https://remsky-kokoro-tts-zero.hf.space/gradio_api/file=/tmp/gradio/8178a9a13fceab0fd38262452af3118b8ca01d104ed3ae4fd6ba2bc8f115f81b/audio.wav","mimeType":"audio/wav" },"speed":1,"voice":"af_bella","provider":"kokoro-tts" },"timestamp":"2026-07-10T05:18:18Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Code
const data = await client.run( "ai:kokoro-tts", "synthesize", { text: "Hello! This is a short speech sample rendered in real time.", voice: "af_heart", speed: 1 });