Parakeet-preferred live sessions repeatedly fall back to failing Modulate sessions
With Omi Parakeet explicitly selected in the production iOS app and a stock CV1 on firmware 3.0.21, the client recorded 32 new live-transcription attempts during a 2026-08-09 dogfood window. Twenty-seven ended in provider-side failure: 26 terminal failures identified the provider as Modulate and only one identified Parakeet, even though every new client attempt logged explicit_provider=parakeet. Several attempts reached service-ready but produced no transcript, and the UI remained on “Reconnecting transcription.” Expected behavior is for an explicit Parakeet selection to stay on that provider or enter a bounded, observable fallback; the ready/failure contract should also report the provider actually selected and the fallback reason so the client does not treat a failing fallback as a healthy Parakeet session.
Partial fix merged: #11359 (1bd0bf3).
That PR only repairs the attribution half of this report: ListenReceiver.initialize_stt snapshotted the provider name before _create_stt_socket could fall back Parakeet → Modulate, so post-fallback terminal failures (death monitor + init exception path) could label a Modulate session parakeet. The provider is now resolved at use time, so stt_failed/record_live_stt_failure name the provider actually serving.
Still open here: why an explicit explicit_provider=parakeet selection falls back so often, and surfacing the actual provider + fallback reason on the ready event so the client can tell a fallback session from a healthy Parakeet one.
@Git-on-my-level — need human response. I ran a clean, fully in-range control and audited the current-main live-STT path. This separates the remote transcription failure from BLE recovery.
Clean in-range control (factory app + stock CV1 firmware 3.0.21)
Window: 2026-08-11 19:41:35–21:41:35 EDT.
- Zero BLE state transitions.
- Every sample reported the device connected, audio path ready, capture unpaused, and the BLE audio subscription present.
- The durable ring stayed effectively empty (4,884 bytes / 11 packets).
- The already-active Deepgram-labelled session failed at 20:20.
- The app then established 13 replacement sockets. Socket acquisition took 159–373 ms (201 ms median), and every attempt reached the server's
readystate. - Twelve consecutive replacement sessions then failed with the server-reported provider
modulate. - The final session connected at 20:43:03 but produced its first segment only 834.096 seconds later, at 20:56:57.
- Durable audio capture/sync remained healthy: 20 phone-origin recordings, 652 seconds / 2,850,446 bytes, all synced with no corruption or backlog.
This is not explained by leaving BLE range: the pendant-to-phone path remained continuously healthy while the remote STT path failed/recovered independently.
Current-main code causes / observability gaps
-
The plain Omi setting stores legacy
sonioxand sends it asstt_service(app setting, socket URL). The backend only treats exactparakeetas an actionable preference;sonioxfalls through to serving policy (selection code). -
Current main is Modulate-first and explicitly has no in-session Modulate→Deepgram retry (policy). A newly pushed recovery commit, 98abcae, records production evidence that 601/997 finished Modulate sessions carried 0 ms audio, 21/27 listen pods were Velma-first, and Velma was rejecting live sessions with “Invalid input audio”; it restores Deepgram-first. I could not find an open PR for that branch yet.
-
Modulate partial utterances are buffered but deliberately not forwarded (implementation). During continuous speech the UI may therefore receive no visible text until the whole utterance finalizes. That mechanism is consistent with the observed 834-second first-segment delay.
-
The server emits
readyimmediately after the provider socket initializes, before any transcript delivery, and without provider/fallback metadata (runtime). The app clears its terminal failure onready, so “Listening” can briefly represent a provider socket that is about to fail rather than a proven audio-to-transcript path. -
Provider death is reduced to a bounded client-side
connection_lost/close. The real Modulate error remains server-side, so client telemetry alone cannot distinguish invalid audio, rate limiting, clean close, or another provider failure.
Requested follow-through
- Land and validate the Deepgram-first recovery against physical live sessions.
- Use backend metrics/logs to determine the actual Modulate death reason; the client logs cannot supply it.
- Include selected provider, fallback reason, and a bounded terminal reason in lifecycle telemetry.
- Add same-session provider failover or bounded provider rotation so one bad provider/pod does not strand live transcription.
- Revisit partial forwarding/endpointing so continuous speech cannot hide all live text for minutes.
This issue should remain open until the remote live path recovers reliably under a continuously healthy BLE/audio path.
Closing per automated triage (2026-08-20): verified fixed: #11757/#11754/#11822 STT fallback chain + provider naming. See /tmp/omi-issue-triage.md.