myvocal_v4, myvocal_v3_turbo, myvocal_v3 or multilingual_v2. Omit model_id for the default Turbo model. See Models.YOUR_API_KEY and YOUR_VOICE_ID with your enterprise key and an existing voice ID. V4 and V3 Turbo use the same endpoint. To try Turbo, replace myvocal_v4 with myvocal_v3_turbo.| Parameter | Usage |
|---|---|
text | Text to synthesize |
model_id | Selects the model. Omit to use the default. |
voice_settings | Voice settings supported by the selected model |
language_code | Optional language code in the JSON request body |
priority | Selects the concurrency pool |
stability and similarity_boost in voice_settings, with values in 0..1. Start with 0.5 and 0.75, respectively, and adjust one setting at a time. For myvocal_v3, stability accepts only 0, 0.5 or 1.style, speed or use_speaker_boost. Other models’ controls are described below. A fixed seed can improve consistency for the same input. Byte-identical audio is not guaranteed.auto: use dedicated capacity first and switch to shared capacity if it fills up.dedicated_concurrency: use dedicated capacity.shared_concurrency: use shared capacity. Requests may queue.zh and Cantonese yue. Omit language_code for language selection based on the text. When setting it explicitly, supply text in that language. Full list.direct and format options, see Audio formats and playback.https://api.voicelibrary.co. See Regional servers to select a region.model_id, voice_id and format. See the FAQ.curl --location 'https://api.voicelibrary.co/enterprise/v1/tts//?format=mp3_44100_64&quality=0' \
--header 'api-key;' \
--header 'Content-Type: application/json' \
--data '{
"text": "hi, this is a TTS Test",
"model_id": "multilingual_v2",
"language_code": "en",
"voice_settings": {
"stability": 0.7,
"similarity_boost": 0.7,
"speed": 1
},
"priority": "auto"
}'{}