Skip to main content
WSS

Query Parameters

The WebSocket connection accepts the following query parameters:

Audio Configuration

Language & Detection

Feature Flags

Webhook Configuration

Connection Flow

Example Connection URL

Input Messages

Audio Data (Binary)

Send raw audio bytes as binary WebSocket messages:

End Signal (JSON)

Signal the end of audio stream. This is used to flush the transcription and receive the final response with is_last=true:

Response Format

The server responds with JSON messages containing transcription results:

Response Fields

Optional Response Fields (Based on Query Parameters)

Example Response with All Features

Code Examples

bearerAuth
type:http

Bearer token authentication using Smallest AI API key

AudioData
type:string
Example: Binary audio data chunk (4096 bytes recommended)
EndSignal
type:object
TranscriptionResponse
type:object