Websockets
Translate Realtime
WebSocket Real-time Speech Translation Channel
Through this channel, clients can:
- Send initialization messages to configure translation parameters
- Send audio data streams for real-time speech translation
- Send command messages to control the translation flow
- Receive source transcript results and translated results (partial and final)
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