vit_soniox 2.0.0
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.connectnow 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.toMapno longer includesapi_key; the key travels with the connection, not in the start message.
1.0.3 #
- Fix:
disconnect()during a pendingconnectno 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.fromMapno longer crashes when the numeric fields are absent. Translated tokens (translation_status: "translation") carry noconfidence/start_ms/end_ms, and the raw casts threwtype '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 onerrorsinstead of being dropped as empty transcriptions. - Fix: a failed
connectis reported onerrorsand no longer leaves the session stuck inisConnecting.
1.0.0 #
- Initial version.