Messages
Websockets
TTS Realtime
WebSocket Real-time Text-to-Speech Channel
Through this channel, clients can:
- Send initialization messages to configure voice parameters
- Send text messages for real-time speech synthesis
- Receive audio data streams
Connection:
- Authentication via header:
X-Api-Key: YOUR_API_KEY - Authentication via query:
?token=YOUR_API_KEY
Message Format:
All messages are in JSON format, containing a type field to identify the message type
WSS
Messages