Text-to-speech via Qwen TTS — 7 voice characters, instant audio URL.
synthesizepassing, 4.2s/v1/ai:qwen-tts/synthesize1h cache2 paramschecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("ai:qwen-tts", "synthesize", {
"text": "你好。Hello, this is a short speech sample.",
"voice": "Cherry"
});
console.log(data);curl -X POST "https://api.zpi.web.id/v1/ai:qwen-tts/synthesize" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx" \
-H "content-type: application/json" \
--data '{"text":"你好。Hello, this is a short speech sample.","voice":"Cherry"}'/v1/ai:qwen-tts/synthesizeText-to-speech via Qwen TTS — 7 voice characters, instant audio URL.textstringrequiredin bodyvoiceenumoptionalin bodycurl -X POST "https://api.zpi.web.id/v1/ai:qwen-tts/synthesize" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"text": "你好,欢迎来到 Zapi。Hello, welcome to Zapi public API.",
"audio": {
"url": "https://qwen-qwen-tts-demo.hf.space/gradio_api/file=/tmp/gradio/ad91b8988c1e2c765491db4942da4607b8513020f99ca4971decb981c40f8da0/tmp1zzfppff.wav",
"mimeType": "audio/wav"
},
"voice": "Cherry",
"provider": "qwen-tts"
}