Skip to main content

vit_soniox 2.0.0 copy "vit_soniox: ^2.0.0" to clipboard
vit_soniox: ^2.0.0 copied to clipboard

Real-time speech-to-text transcription using the Soniox WebSocket API, with support for final/non-final tokens and speaker diarization.

2.0.0 #

  • BREAKING: WebsocketContract.connect now takes the API key (connect(url, {String? apiKey})). Soniox authenticates the WebSocket on the handshake — Authorization: Bearer <key> on IO (desktop/mobile/server) or the protocols list ['soniox-api-key', key] in a browser — and refuses connections without it from 2027-01-15.
  • BREAKING: SonioxSessionConfig.toMap no longer includes api_key; the key travels with the connection, not in the start message.

1.0.3 #

  • Fix: disconnect() during a pending connect no longer sends the session config on an already closed socket (Bad state: Cannot add event after closing). The connect is abandoned and the socket closed.
  • Fix: messages that arrive after disconnect() are dropped instead of being added to closed controllers (unhandled exception in the zone).
  • Fix: the socket subscription is cancelled on disconnect().

1.0.2 #

  • Fix: TranscriptionToken.fromMap no longer crashes when the numeric fields are absent. Translated tokens (translation_status: "translation") carry no confidence/start_ms/end_ms, and the raw casts threw type 'Null' is not a subtype of type 'num' for every translation event, losing the whole message.

1.0.1 #

  • Fix: Soniox error responses (int error_code) are now emitted on errors instead of being dropped as empty transcriptions.
  • Fix: a failed connect is reported on errors and no longer leaves the session stuck in isConnecting.

1.0.0 #

  • Initial version.
0
likes
160
points
80
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Real-time speech-to-text transcription using the Soniox WebSocket API, with support for final/non-final tokens and speaker diarization.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on vit_soniox