Skip to navigation

WebSocket

View as Markdown

Use this endpoint for low-latency transcription over WebSocket.

  • Connection URL: wss://hub.getraya.app/transcribe

  • Authentication: Send X-API-Key in headers during WebSocket connect.

  • Client flow: connect, send transcribeRequest, receive transcribeResponse or errorResponse.

  • 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

transcribeRequestobjectRequired
Send one JSON message per audio payload.

Receive

transcribeResponseobjectRequired
Successful transcription response.
OR
errorResponseobjectRequired
Error payload when transcription fails.