Skip to main content
After you finish streaming audio, close the WebSocket and complete the session with REST APIs. Click on each tab below to learn more about how to complete the session after streaming for Ambient and Dictation.

Prerequisites

  • You already streamed audio on Ambient /ws/stream or Dictation /ws/transcribe for an active session.
  • A valid Suki Token. See Partner authentication.
  • For Ambient: readiness to send RU9G, close the socket, call End, then poll status and retrieve content.

Complete the session after streaming audio

After sending the final RU9G message, close the WebSocket connection and complete the ambient session with REST.
1

Close the WebSocket Connection

Close the WebSocket connection from the client when you are done sending audio for that segment.
2

End the Session Using REST

End the session using End ambient session API.
3

Retrieve Results Using REST

Poll session status and fetch transcript and structured data using these REST APIs:
Final transcripts and notes are not guaranteed to arrive over WebSocket. Treat REST APIs as the source of truth.

Troubleshooting

Use this table when ambient streaming misbehaves. It explains what each error or behavior means, why it occurs, and how to resolve it.

Available cookbooks

Available tutorials

Next steps

Ambient audio streaming API - ambient WebSocket request and response contract. Stream audio to a Dictation session - Dictation WebSocket handshake and message fields. Audio capture and streaming FAQs - Codec, chunk size, and reconnect guidance.
Last modified on October 16, 2026