Transcribe real-time audio with AssemblyAI Universal-Streaming via the v3 WebSocket endpoint

domain: assemblyai.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Open a WebSocket to wss://streaming.assemblyai.com/v3/ws (EU: wss://streaming.eu.assemblyai.com/v3/ws); pass your API key in the Authorization header.
  2. Include the speech_model query parameter in the WebSocket URL — required, no default — use universal-streaming-english for English-only or universal-streaming-multilingual for multilingual detection.
  3. After the connection handshake, send audio chunks as binary frames encoded in the format and sample rate you declared (consult current docs for supported formats; 16-bit PCM at 16 kHz is commonly supported).
  4. Parse incoming JSON text frames: partial_transcript events arrive in real time; final_transcript events mark completed utterances and are available when formatting and punctuation are finalised.
  5. To end the session, send a JSON text frame {"message_type":"TerminateSession"} and await the session_terminated event before closing the WebSocket.

Known gotchas

Related routes

Stream real-time transcription with AssemblyAI v3 using current model IDs and message event names
assemblyai.com · 5 steps · unrated
Receive and process real-time call audio from Twilio Voice using Media Streams over WebSocket
twilio.com · 5 steps · unrated
Integrate the ElevenLabs Text-to-Speech API to generate and stream audio
elevenlabs.io · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans