Establishes a WebSocket connection to stream audio to the speech service. Authentication varies by client type:
Sec-WebSocket-Protocol
header during the WebSocket handshake. Specify the custom protocol SukiAmbientAuth
followed by the session ID and token. Format: Sec-WebSocket-Protocol: SukiAmbientAuth <ambient_session_id> <sdp_suki_token>
. The server will negotiate and select this protocol.sdp_suki_token
and ambient_session_id
as separate standard HTTP headers with the initial WebSocket upgrade request.Required FOR BROWSER CLIENTS ONLY. Sent during WebSocket handshake. Format: 'SukiAmbientAuth <ambient_session_id> <sdp_suki_token>'
Required FOR NON-BROWSER CLIENTS ONLY: The SDP Suki token. Sent as a standard header with the initial upgrade request.
Required FOR NON-BROWSER CLIENTS ONLY: The ambient session ID. Sent as a standard header with the initial upgrade request.
Switching Protocols - Indicates successful WebSocket handshake." // Standard successful WS upgrade response
The response is of type string
.