Text-to-Speech
Text-to-Speech Streaming
Create text-to-speech audio and return streaming audio response.
POST
Header
string
required
API key for authentication.
Body
string
required
Voice ID returned by
GET /sound_clone/api/v1/voices.string
Optional title for the generated record.
string
required
Text to synthesize.
string
Language selector.
Default/V2 path: required and must use existing mapped language values.
myvocal_v3: optional. If provided, it is forwarded to upstream as language. If omitted, upstream auto-detect is used.See supported V3 codes in V3 Language Codes (98 languages).
string
Optional explicit model selector.
Omit it to use the default model path.
Set
myvocal_v3 to request the V3 path.object
For advanced settings, use suggested values unless you have strong tuning needs.
Prompt Control (myvocal_v3)
Reference capability source: v3.myvocal.ai. Use
[tag] in text to guide style and delivery.- Emotion control:
happy,excited,sad,angry,surprised - Non-speech sounds:
laughter,throat clearing,yawning,shushing,screaming - Sound-related effects:
breathing,sighing,gasping,crying,murmuring
Response
string
Success usually returns
audio/mpeg.stream
Binary audio stream payload.
Common errors
Invalid language option.: non-V3/default path is missing or using an unsupportedlanguagevalue.VOICE_NOT_FOUND:voiceIdis invalid or not available under this API key.code = -1: upstream or backend failed to complete generation.
