wss://openapi.myvocal.ai/ai/speech/websocketAPI-Key. Otherwise the service returns an error:{
"API-Key": "YOUR_API_KEY",
"voice": "your_voice_id",
"priority": "dedicated_concurrency",
"extra_info": true
}API-Key, voice and priority=dedicated_concurrencyformat, sample rate sample_rate, output language and additional information with extra_info: true.{"text": "Hello, welcome to MyVocal TTS!"} {"text": "This is a demonstration of real-time speech synthesis"} {"text": "This is a demonstration of "} {"text": "real-time speech synthesis"}{
"flush": true
}buffer_empty.flush, the model waits for sufficient text before returning binary audio. Typically it buffers about two sentences to preserve continuity.flush=true at a sentence boundary and check buffer_empty to see when buffered text has been processed.