Skip to main content
GET
Stream transcription (WebSocket)

Authorizations

Authorization
string
header
required

Use Authorization: Bearer pyai_live_... (or pyai_test_...).

Query Parameters

model
string
default:pyai-hear

Streaming STT model.

language
string

ISO-639-1 language hint forwarded to the engine (e.g. en). English is the GA, benchmarked language today; other codes are accepted as hints but recognition accuracy is not yet published, see the Language support reference. One hint per session; there is no mid-session auto-detect.

sample_rate
integer
default:16000

Input PCM sample rate in Hz.

encoding
enum<string>
default:pcm16

Audio frame encoding.

Available options:
pcm16,
opus
interim_results
boolean
default:true

Emit eager partial hypotheses.

numerals
boolean
default:false

Format spoken numbers as digits in the transcript (e.g. 'one two three' → '123'). Same semantics as the batch numerals flag; forwarded to the engine. Useful for voice agents that read back phone numbers, codes, and amounts. Default false (spoken form).

seed
integer

Optional determinism seed for reproducible eval runs. Forwarded to the engine and honored once the engine supports it; no effect when omitted.

temperature
number

Optional sampling temperature for reproducible eval runs. Forwarded to the engine and honored once the engine supports it; no effect when omitted.

endpointing_ms
integer

Optional turn-segmentation tuning: the trailing-pause length (ms, 50-5000) that ends an utterance. Useful where turn-taking pacing differs. Clamped to the valid range and forwarded to the engine; honored once the engine supports it, a no-op when omitted. You can always force end-of-turn from the client with {"type":"commit"}.

Required range: 50 <= x <= 5000

Response

Switching Protocols, the streaming transcription WebSocket is open.