Choose a model, enter your prompt, and see the result.
HiAPI Blog
HiAPI
Generate it with HiAPI
qwen-audio-3.0-tts-flash is Alibaba's low-latency text-to-speech model on hiapi, and its speed profile fits two e-commerce jobs particularly well: answering shoppers in a voice assistant without an awkward pause, and reading out order or inventory updates the moment they happen. Neither job needs a huge model — they need speech that starts fast and sounds natural.
E-commerce voice surfaces fail on delay, not on voice quality. A customer-service bot that takes three seconds to start speaking feels broken even if the answer is right. A warehouse or storefront announcement system that lags behind the event it's describing ("order #4821 is ready" spoken a minute late) loses its usefulness entirely. qwen-audio-3.0-tts-flash is built for this class of problem: short, frequent utterances that need to go out the moment the text is ready, not batch-rendered audio for a podcast or audiobook.
A support voice bot typically generates a handful of short sentences per turn — order status, return policy, shipping estimate — and needs to speak each one back with minimal delay to keep the conversation feeling live. Because qwen-audio-3.0-tts-flash only requires text and voice as inputs, it's easy to drop into an existing dialogue pipeline: your LLM or rules engine produces the reply text, and this model turns it into audio on the next hop.
curl -X POST https://api.hiapi.ai/v1/tasks -H "Authorization: Bearer sk-<your-api-key>" -H "Content-Type: application/json" -d '{
"model": "qwen-audio-3.0-tts-flash",
"input": {
"text": "Your order shipped this morning and should arrive by Thursday.",
"voice": "longanhuan_v3.6"
}
}'
The response is a taskId you poll (or receive via callback) for an output[0].url pointing at the rendered audio — the same /v1/tasks pattern used across hiapi's models. For the full request/response cycle in curl and Python, see the qwen-audio-3.0-tts-flash API tutorial.
The second use case is less conversational and more broadcast-style: a fulfillment center calling out "pack station 3, order ready" over a floor speaker, a storefront kiosk announcing "item back in stock," or a checkout counter confirming a scanned item out loud. These are short, templated phrases triggered by an event (a webhook, a database row change, a barcode scan), and the bar is the same — synthesize and play back before the moment has passed.
Because pricing is per character rather than per request, short templated phrases like these are inexpensive to generate on demand instead of pre-recording every possible variant. A practical pattern is to keep a small set of phrase templates, fill in the variable (order number, item name, aisle) at runtime, and call the model fresh each time:
import requests
def announce(text: str, api_key: str) -> str:
resp = requests.post(
"https://api.hiapi.ai/v1/tasks",
headers={"Authorization": f"Bearer {api_key}"},
json={
"model": "qwen-audio-3.0-tts-flash",
"input": {"text": text, "voice": "loongeva_v3.6"},
},
)
return resp.json()["data"]["taskId"]
voice accepts four fixed values: longanhuan_v3.6, longjielidou_v3.6, loongeva_v3.6, and loongjohn. For customer-facing announcements, it's worth generating a short sample with each and picking the one that matches your brand tone before wiring it into production — there's no speed or pitch parameter to adjust after the fact, so voice choice is your main lever for how the announcement feels.
Billing is $0.03 per 1,000 characters of input text (as of 2026-09) — cheap enough that per-event announcements and per-turn bot replies don't need batching to stay affordable. Confirm the current rate on the hiapi pricing page before estimating volume, since rates can change.
Can qwen-audio-3.0-tts-flash handle a live customer-service conversation, turn by turn? Yes — it's designed for short, frequent text-to-speech calls rather than long-form narration, which matches a multi-turn bot replying sentence by sentence.
Is it fast enough for real-time floor or storefront announcements? For short templated phrases (order numbers, item names, status words), synthesis is quick enough that the announcement plays back close to the triggering event. Test with your actual phrase lengths, since latency scales with text length.
Do I need to pre-record announcement phrases instead of generating them live? No — because billing is per character and the model is low-latency, generating short phrases on demand is generally simpler and cheaper than maintaining a pre-recorded phrase library.
Which voice should I use for a shopping assistant vs. a warehouse announcement?
There's no functional difference between the four voices beyond tone — longanhuan_v3.6, longjielidou_v3.6, loongeva_v3.6, and loongjohn. Generate a sample of each with your actual announcement text and pick by ear.
What audio format do I get back?
pcm, wav, mp3, or opus, set via input.format; omit it to use the model's default.
Ready to wire real-time voice into your storefront or support flow? Check the Qwen-Audio 3.0 TTS Flash model page for the full spec, or start from the step-by-step API tutorial if you want a working request before you build the e-commerce flow around it.