WebSocket
Use this endpoint for low-latency transcription over WebSocket.
-
Connection URL:
wss://hub.getraya.app/transcribe -
Authentication: Send
X-API-Keyin headers during WebSocket connect. -
Client flow: connect, send
transcribeRequest, receivetranscribeResponseorerrorResponse. -
You send: Client sends a JSON payload containing base64 WAV audio.
-
You receive: Server returns a transcript or an error payload.
Handshake
WSS
wss://hub.getraya.app/transcribe
Authentication
X-API-Keystring
API key for authentication. Example: raya_ABCD1234567890abcdef
Send
transcribeRequest
Send one JSON message per audio payload.
Receive
transcribeResponse
Successful transcription response.
OR
errorResponse
Error payload when transcription fails.

