Skip to main content
GET
/
v1
/
audio
/
transcriptions
/
stream
Stream transcription (WebSocket)
curl --request GET \
  --url https://api.pyai.com/v1/audio/transcriptions/stream \
  --header 'Authorization: Bearer <token>'
{
  "error": {
    "message": "<string>",
    "type": "<string>",
    "param": "<string>"
  }
}

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 hint, e.g. 'en'.

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.

seed
integer

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

temperature
number

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

Response

Switching Protocols — the streaming transcription WebSocket is open.