Repository navigation
Description
Bug: Audio lost when internet drops while Bluetooth stays connected
Platform: Android (tested by community member)
Problem
When the Omi CV1 is connected to the phone via Bluetooth but internet connectivity is lost (e.g. entering an elevator, dead zone), the audio streamed during the outage is permanently lost. The transcription for that period never appears — even after internet is restored.
What Happens
- Omi is connected via BT, recording and transcribing normally
- Internet drops (phone loses Wi-Fi/cellular) but Bluetooth stays connected
- Audio continues streaming from pendant to phone over BT
- The app shows "Waiting for network" — the WebSocket to the transcription service is down
- The app does not buffer the incoming audio — it receives bytes from BT but only sends them to the socket if
socket.state == connected. If the socket is disconnected, the audio bytes are silently dropped. - Internet returns — transcription resumes, but everything said during the outage is gone
Root Cause (from code review)
In capture_provider.dart, the phone mic recording handler:
onByteReceived: (bytes) {
if (_socket?.state == SocketServiceState.connected) {
_socket?.send(bytes);
}
}If the socket isn't connected, audio bytes are simply not sent and not saved anywhere. There is no local buffer, no queue, no disk cache for audio received over BT when the internet is down.
The firmware correctly streams audio to the phone over BT regardless of internet status. But the app discards it silently.
Expected Behavior
Audio received from the pendant should be buffered locally on the phone when the transcription socket is unavailable, then sent for processing once connectivity is restored — or at minimum saved as a local recording that can be synced later.
Impact
High — users lose portions of conversations during any brief internet interruption (elevators, tunnels, dead zones, Wi-Fi handoffs). This is especially problematic because:
- The device LED stays blue (connected), giving the impression everything is being captured
- There is zero indication that audio is being lost
- The pendant's SD card doesn't activate because BT is still connected
Suggested Fix
Buffer incoming BT audio bytes to a local file when the transcription socket is disconnected. On reconnect, either:
- Send the buffered audio to the transcription service, or
- Treat it like an offline recording and process it through the normal sync pipeline
Tested and reported by community member on Discord (Android).
Activity
beastoin commentedon Feb 27, 2026
Related data loss cluster: #4816 (long recordings disappear on disconnect), #4805 (web unreliable — 40 min meeting lost), #4669 (offline sync data loss), #4867 (offline sync fails to process). This issue adds a new variant: audio streamed over BT is silently dropped when internet fails because the app doesn't buffer incoming bytes during WebSocket disconnection.
beastoin commentedon Mar 17, 2026
This issue is now tracked under the main umbrella issue #5733 (Audio capture data loss). Please report any new findings or updates there so we can keep investigation centralized. This issue stays open as a child reference for its specific scenario.
by AI for @beastoin
beastoin commentedon Mar 17, 2026
This report describes the behavior but has no specific incident data we can trace. To investigate:
Without a specific incident (date + UUID), we cannot verify whether audio was actually lost server-side or if it was a client-side drop.
@aaravgarg @mdmohsin7 — can we check if any Discord reporters who experienced this can provide trace data?
Tracked under #5733.
by AI for @beastoin
beastoin commentedon Mar 30, 2026
S3 Repro Results — Works by Design
Reproduced on: Pixel 7a (33041JEHN18287), Omi dev app (
com.friend.ios.dev), phone mic recording (same code path as BLE — identicalif (socket.connected)gate incapture_provider.dart)Setup
capture_provider.dart:912-925Repro Timeline (UTC)
Evidence
Mock server logs (pre-outage → outage → post-restore):
Flutter logs (WS disconnect):
WAL logs (frames captured but NOT synced during outage):
Verdict: Works by Design
The audio bytes are not permanently lost. WAL captures all frames during the outage via
onFrameCaptured(), marks them as "miss" (not WebSocket-synced), and stores them on disk. These WAL chunks can be recovered later through manual sync.The code behaves as designed:
capture_provider.dartgates WS send on_socket?.state == SocketServiceState.connectedWalStatus.missfor later syncUX Concern (separate issue)
While the data isn't lost, the user experience during internet outage is poor:
Filing a separate UX improvement issue for this concern.
Repro by @kelvin-agent, 2026-03-30
beastoin commentedon Mar 30, 2026
Closing as works by design. Repro confirmed that audio bytes ARE saved locally via WAL during internet outage — they are not permanently lost. WAL captures all frames and marks them as "miss" for later manual sync.
The remaining UX concern (no warning to user, no automatic recovery, invisible transcript gap) has been filed as #6171.
See repro evidence in the comment above.