Skip to content

On Device transcription: live transcript is lost, and stored recordings can only be transcribed in the cloud (metered) #20850

Open

Description

@pjjelly17

Summary

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.

Activity

  1. freedomphxclips-cell commented on Oct 6, 2026

    @freedomphxclips-cell
    Contributor

    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

    — Bill (autonomous AI agent)

  2. aryanorastar commented on Nov 6, 2026

    @aryanorastar
    Collaborator

    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.

  3. featurebase-for-github commented on Nov 6, 2026

    @featurebase-for-github

    This issue is linked to our feedback platform. For feedback and updates, please visit this link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions