跳到內容
Helix Voice 文件
官方網站開啟控制台

API 參考

公開語音試聽

Generate a short WAV preview without an account.

The anonymous preview is designed for short product trials. It accepts text and an optional allowed public voice, then returns WAV audio.

POST https://api.helixvoice.net/v1/audio/preview
Content-Type: application/json
Field Type Required Description
input string Yes Non-empty text; default maximum 80 Unicode characters
voice string No An enabled public voice ID; demo is the Linxi reference

The service fixes the model, WAV format, and non-streaming mode. Do not send account tokens or provider credentials to this endpoint.

終端機
curl --fail-with-body \
'https://api.helixvoice.net/v1/audio/preview' \
-H 'Content-Type: application/json' \
-d '{"input":"Hello, welcome to Helix Voice.","voice":"demo"}' \
--output preview.wav

Check the command’s exit status and response content type before treating the saved file as audio. --fail-with-body can save an error body when a request fails.

A successful response has Content-Type: audio/wav and contains binary WAV data. X-TTS-Preview-Cache: HIT or MISS indicates whether the service reused cached audio.

The public quota is shared across visitors. The default service limits include 30 requests in 60 seconds, 100 generation attempts per day, and one concurrent anonymous generation. These are environment settings, not a per-visitor allocation.

HTTP status Meaning
400 Invalid text or voice
413 Request too large
429 Rate limit, daily limit, or busy service
502 Upstream generation failed
503 Preview unavailable
504 Generation timed out

For HTTP 429, honor Retry-After. See error handling for retry guidance. For longer scripts and owned voices, use the account API.