High-quality multilingual text-to-speech synthesis.
synthesizefailed the last check/v1/ai:kokoro-tts/synthesize5m cache3 paramschecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
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
});
console.log(data);curl -X POST "https://api.zpi.web.id/v1/ai:kokoro-tts/synthesize" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx" \
-H "content-type: application/json" \
--data '{"text":"Hello! This is a short speech sample rendered in real time.","voice":"af_heart","speed":1}'/v1/ai:kokoro-tts/synthesizeGenerate speech audio from text input.textstringrequiredin bodyvoiceenumoptionalin bodyspeednumberoptionalin bodycurl -X POST "https://api.zpi.web.id/v1/ai:kokoro-tts/synthesize" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"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"
}