Skip to main content
Go 1.22 or later. Dependency: github.com/gorilla/websocket. Served by the Go module proxy from the go/v1.0.0 tag of MyVocal-AI/myvocal-stt-realtime-sdks.

Stream a file

Every call takes a context.Context; cancel it to stop waiting. Optional booleans and numbers use sttrealtime.Bool, Int and Float, so false and 0 are sent as given and nil is omitted.

Byte chunks and events

Commit, pause and resume

After a disconnect

Config

Errors

Use errors.Is with ErrInputInvalid, ErrAuthentication, ErrInsufficientCharacters, ErrNotFound, ErrIdempotencyConflict, and errors.As with *APIError (Code, ErrorCode, Retryable, RequestID), *AudioFormatError, *SessionStateError, *ConnectionLostError, *BackpressureTimeoutError, *FinishUnconfirmedError (SessionID) and *TransportError.