POST request to https://api.qhaigc.net/v1/voice/model to create a custom voice character from your own audio samples. Once the model is created, its name appears in GET /v1/audio/voices and can be passed as the voice parameter in POST /v1/audio/speech.
Request
multipart/form-data encoding.
Parameters
A unique name for your voice character (for example,
"私人助手"). This is the value you pass as voice in subsequent TTS requests.Two or three
.wav audio files used to train the voice model. Recommended sample rate: 16 kHz or 24 kHz, mono channel.An array of text strings that correspond one-to-one with each audio file in
audio_files. These transcripts help the model learn the voice accurately.Set to
"true" to make the voice publicly available to all Qhaigc users, or "false" to keep it private (only your account can use it). Defaults to "false".A short description of the voice character’s style or intended use.
Required when
public is "false". Provide an email address so that Qhaigc can contact you about your voice model if needed.Response
The name of the newly created voice character, matching the
name you submitted.Whether the voice is publicly accessible.
The description you provided for the voice model.
Example response
Code examples
Related endpoints
- GET /v1/audio/voices — Confirm your new voice appears in the list
- POST /v1/audio/speech — Use your cloned voice to generate speech
- Web Voice Clone — Create a voice model through the web console instead of the API