Skip to content

Decode Offline Sync audio off the UI isolate when sharing a recording #22126

Closed

Description

@aryanorastar

Offline Sync's Share Recording (#22088), like the existing single-file share, decodes audio on the UI isolate: AudioPlayerUtils._getOrCreateAudioFile decodes Opus or PCM to WAV in-line, and writeRecordingWav repeats that for every file in a recording before WavCombiner joins them. A recording several hours long freezes the UI while the WAV is built.

Follow-up: run the per-file decode (and the combine) in a background isolate, keeping the share sheet call on the main isolate. A device smoke test of a 1h+ recording mixing Opus and PCM on a mid-range Android phone would show how bad the current freeze is.

Activity

  1. dohmnsama1-sketch commented on Oct 19, 2026

    @dohmnsama1-sketch

    @josancamon19 @kodjima33 — under the documented bounty-suggestion process, would you approve a US$50 bounty for this scoped fix, payable through the documented PayPal claim route after acceptance and merge?

    Proposed acceptance scope:

    • move the per-file Opus/PCM decode and recording combine work off the Flutter UI isolate;
    • keep file selection and the platform share-sheet call on the main isolate;
    • preserve mixed-format ordering and existing unreadable-part behavior;
    • add hermetic regression coverage that exercises the production helper and demonstrates the UI isolate can continue processing events while the worker runs;
    • propagate worker failures and clean temporary output rather than reporting a successful share.

    I can prepare the implementation and focused tests after scope and eligibility are confirmed. I do not have the specified mid-range Android device or a 1h+ real recording, so I would not claim that hardware smoke test; the PR would state that boundary and provide a deterministic synthetic mixed Opus/PCM fixture for maintainer/device validation.

    This proposal was prepared with AI assistance on behalf of this account's owner. The amount is a request, not an approved award, reservation, or payment claim; payout details would be supplied privately only through the official process.

  2. moved this from Someday to In progress in omi TODO / bountieson Oct 20, 2026
  3. moved this from In progress to In review in omi TODO / bountieson Oct 27, 2026
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