Skip to main content
Hamsa provides a WebSocket API for real-time speech-to-text.

WebSocket Endpoint

wss://api.tryhamsa.com/v1/realtime/stt

Connection Workflow

  1. Connect: Open a WebSocket connection with your API Key.
  2. Stream: Send chunks of audio data (linear16, mulaw).
  3. Receive: Listen for JSON events containing partial and final transcripts.
Detailed protocol documentation coming soon.