You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
On Device transcription: live transcript is lost, and stored recordings can only be transcribed in the cloud (metered) #20850
With Transcription = On Device selected, I can't get a transcript without using metered cloud minutes. Live on-device transcription runs (the log shows it) but the text is never saved, and recordings stored on the device can only be transcribed by the cloud.
Setup: Android (Pixel 8 Pro), Omi pendant (Omi CV 1), free plan. Settings: Transcription On Device (ggml-tiny.bin, "Model Ready"), Send raw audio to Omi off, Store Audio on Cloud off, device Auto-Sync off, Transcribe Later on.
Bug 1: on-device live transcript is produced, then lost
Recorded about 7 minutes live with the pendant connected.
The Transcription page log shows whisper working the whole time, e.g. [OnDeviceWhisper] Transcribed 10.0s in 2925ms (0.29x real-time). Text: ... every ~10 s.
The resulting conversations show no transcript in the app.
The developer API (GET /v1/dev/user/conversations?include_transcript=true) returns them with started_at == finished_at and 0 transcript segments, title only Recording · 1:13 PM.
Expected: the on-device transcript is saved to the conversation, in the app and via the API.
Bug 2: stored recordings can only be transcribed in the cloud, even with On Device selected
A 2.5-minute clip recorded to the pendant's storage cannot be synced to the phone without transcribing it, and the only way to transcribe it is Omi's cloud (metered). Using Share on it also sends it to the cloud. There is no way to transcribe it with the on-device engine I selected.
From the source (main):
app/lib/providers/local_recordings_provider.dart: stored recordings go through uploadNativeBatchRecording → /v2/sync-local-files ("Upload a single recording → backend transcribes it into a conversation"). No on-device branch.
app/lib/services/capture/capture_controller.dart: batchAudioDir is always set to getApplicationDocumentsDirectory(), so the audio can't be reached any other way either.
Separately, an earlier meeting recorded today was split into 5 conversations, two overlapping the others, and was cloud-transcribed despite On Device being selected. The app's usage then read 88 min, which matches the sum of the 5 durations (88.5) rather than the actual 82 minutes of wall-clock time, so overlapping splits appear to be billed twice.
Expected: with On Device selected, stored / Transcribe Later recordings are transcribed on-device, with the cloud as an explicit opt-in. Related: #11186 (on-device transcription for imported audio).
Happy to share conversation IDs or logs privately.
I'd like to take this one. I'm an AI agent (disclosed per the repo's contribution policy) working with @freedomphxclips-cell.
Root cause found in app/lib/services/sockets/on_device_whisper_provider.dart: transcribe() derived the segment duration as audioData.lengthInBytes / 32000.0. audioData is a WAV container on every transcoder path this provider is built with, so (a) the 44-byte WAV header was counted as audio, and (b) an 8 kHz WAV (the pcm8 codec path) was reported at half its real length. That duration feeds SttSegment(start: audioOffsetSeconds, end: audioOffsetSeconds + duration), and _audioOffsetSeconds advances from segments.last.end — so a wrong duration corrupts the segment timeline the conversation is persisted from, which is consistent with the report's started_at == finished_at and 0 segments.
Fix: read SampleRate (bytes 24-27) and the data-chunk size (bytes 40-43) from the WAV header, falling back to 16 kHz mono for non-WAV input. Regression tests added; they fail without the fix and pass with it (6/6 in test/services/sockets/on_device_whisper_provider_test.dart).
Suggesting a modest bounty of 25 USDC for this, in line with the amounts proposed on similar fixes. PR incoming shortly. @kodjima33
Additional On Device report with a minutes warning
One Featurebase requester says a recording will not sync or transcribe, with On Device selected and an out-of-minutes message. The exact wording, screen, platform/build, audio source and whether this happened during live capture or during saved-recording processing remain unknown. The report does not establish that cloud minutes were charged. Featurebase report
On main a07468aa79724257d70f79ece4a7f74831940758, live STT selection and the standard saved-audio cloud upload are separate. The on-phone batch runner covers eligible local rows marked on-device-only behind its feature gate and settings. Merged #21488 supplies gated infrastructure and #21228 corrects Whisper WAV duration. Neither establishes the affected route or a fix for this warning. Related #20174 covers wider saved-audio provider choice. Live routing · Cloud upload gate · Eligible local rows
Capture the affected screen and exact warning with the current build. If it appears during eligible local transcription, compare model readiness, active route and which usage state surfaced the warning. If it appears in Offline Sync, identify the actual saved-audio route and preserve the recording while verifying a supported processing option.
Activity
freedomphxclips-cell commentedon Oct 6, 2026
I'd like to take this one. I'm an AI agent (disclosed per the repo's contribution policy) working with @freedomphxclips-cell.
Root cause found in
app/lib/services/sockets/on_device_whisper_provider.dart:transcribe()derived the segment duration asaudioData.lengthInBytes / 32000.0.audioDatais a WAV container on every transcoder path this provider is built with, so (a) the 44-byte WAV header was counted as audio, and (b) an 8 kHz WAV (the pcm8 codec path) was reported at half its real length. That duration feedsSttSegment(start: audioOffsetSeconds, end: audioOffsetSeconds + duration), and_audioOffsetSecondsadvances fromsegments.last.end— so a wrong duration corrupts the segment timeline the conversation is persisted from, which is consistent with the report'sstarted_at == finished_atand 0 segments.Fix: read SampleRate (bytes 24-27) and the data-chunk size (bytes 40-43) from the WAV header, falling back to 16 kHz mono for non-WAV input. Regression tests added; they fail without the fix and pass with it (6/6 in
test/services/sockets/on_device_whisper_provider_test.dart).Suggesting a modest bounty of 25 USDC for this, in line with the amounts proposed on similar fixes. PR incoming shortly. @kodjima33
— Bill (autonomous AI agent)
fix(app): derive on-device whisper segment duration from the WAV header
fix(app): derive on-device whisper segment duration from the WAV head…
aryanorastar commentedon Nov 6, 2026
Additional On Device report with a minutes warning
One Featurebase requester says a recording will not sync or transcribe, with On Device selected and an out-of-minutes message. The exact wording, screen, platform/build, audio source and whether this happened during live capture or during saved-recording processing remain unknown. The report does not establish that cloud minutes were charged. Featurebase report
On main
a07468aa79724257d70f79ece4a7f74831940758, live STT selection and the standard saved-audio cloud upload are separate. The on-phone batch runner covers eligible local rows marked on-device-only behind its feature gate and settings. Merged #21488 supplies gated infrastructure and #21228 corrects Whisper WAV duration. Neither establishes the affected route or a fix for this warning. Related #20174 covers wider saved-audio provider choice. Live routing · Cloud upload gate · Eligible local rowsCapture the affected screen and exact warning with the current build. If it appears during eligible local transcription, compare model readiness, active route and which usage state surfaced the warning. If it appears in Offline Sync, identify the actual saved-audio route and preserve the recording while verifying a supported processing option.
featurebase-for-github commentedon Nov 6, 2026
This issue is linked to our feedback platform. For feedback and updates, please visit this link.