Skip to main content
myvocal-stt-realtime 1.0.0 is distributed as a wheel on the GitHub Release (the sdist and SHA256SUMS are attached there too). Install it:
Python 3.10 or later. Dependencies: httpx, websockets. RealtimeClient (blocking) and AsyncRealtimeClient (asyncio) share one engine.

Stream a file (blocking)

Byte chunks (asyncio)

Commit, pause and resume

After a disconnect

Client options

Errors

InputInvalidError, AuthenticationError and InsufficientCharactersError are not retried. Other envelopes raise ApiError (error_code, retryable, request_id). Also: AudioFormatError (discard_partial_sample()), SessionStateError, ConnectionLostError, BackpressureTimeoutError, FinishUnconfirmedError (session_id) and TransportError.