Skip to content

Remove automatic dictation cutoff - #9

Merged
ichen27 merged 1 commit into
mainfrom
fix/manual-recording-stop
Oct 25, 2026
Merged

ichen27 merged 1 commit into
mainfrom
fix/manual-recording-stop

Conversation

@ichen27

@ichen27 ichen27 commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

Recording disappeared after 4 minutes 55 seconds because AudioCapture called record(forDuration: 295). ClearFlow now records until the user finishes or cancels. Unexpected recorder interruptions surface an error and retain recoverable audio for an explicit retry, rather than automatically transcribing and pasting.

- 295-second automatic stop → one bounded upload
+ User stops → read bounded WAV parts → transcribe in order → insert one combined result

Long recordings stay file-backed and upload sequentially in parts of at most four minutes, within the existing local and optional Worker request limits. Silent parts do not discard speech elsewhere; failures and cancellation never deliver a partial result as complete. Pending temporary audio is deleted after success, cancellation, replacement or quit. No backend deployment or endpoint change is required.

Evidence

  • Before: scripts/test-audio.sh failed when the simulated recorder clock advanced past the hardcoded deadline.
    After: the same capture test stays active at a simulated 60 minutes until explicit stop/cancel. File lifetime checks pass.
  • A 601-second WAV fixture verifies exact sample coverage, bounded parts, tiny remainder balancing, malformed input rejection, ordered result aggregation, silent parts, service failure, and cancellation before/between uploads.
  • Live integration: the production Swift transcription client sent a 306-second synthetic WAV to local Whisper large-v3-turbo in two parts and returned both beginning and ending test phrases. No user audio was used.
  • Native/core, recorder/Carbon, release build/signature and distribution privacy checks pass. Tests use the production capture and transcription paths with simulated hardware/HTTP; they do not claim a physical hour-long microphone run.

Merge Danger

Door: Two-way

Blast Radius: Dictation

Long recordings consume disk space and take longer to transcribe. Device/disk errors can still stop capture. A word crossing a part boundary may be less accurate. Ad-hoc signed app replacement may require renewed macOS permission approval.

@ichen27
ichen27 merged commit 5e6b31c into main Oct 25, 2026
3 checks passed
@ichen27
ichen27 deleted the fix/manual-recording-stop branch October 25, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant