Fix delayed recording startup #11

Merged
kleb merged 4 commits from fix/recording-start-capture into main 2026-07-25 14:07:33 +02:00
Owner

Purpose

Make recording react immediately and preserve speech that begins as soon as the user presses the button or hotkey.

Changes

  • Disable renderer background throttling so hidden and minimized recording controls are delivered promptly.
  • Replace delayed renderer Web Audio cues with native Electron cues.
  • Warm and reuse the selected microphone stream so Windows device startup cannot clip opening words.
  • Load the AudioWorklet concurrently with recorder setup.

Verification

  • bun run typecheck
  • bun run lint
  • bun run format:check
  • bun run test (73 passing)
  • bun run package:win
  • Manual packaged-app recording checks using immediate German counting.

Behavior note

The selected microphone remains active while Voice Typer is running so capture can begin without hardware startup latency.

## Purpose Make recording react immediately and preserve speech that begins as soon as the user presses the button or hotkey. ## Changes - Disable renderer background throttling so hidden and minimized recording controls are delivered promptly. - Replace delayed renderer Web Audio cues with native Electron cues. - Warm and reuse the selected microphone stream so Windows device startup cannot clip opening words. - Load the AudioWorklet concurrently with recorder setup. ## Verification - `bun run typecheck` - `bun run lint` - `bun run format:check` - `bun run test` (73 passing) - `bun run package:win` - Manual packaged-app recording checks using immediate German counting. ## Behavior note The selected microphone remains active while Voice Typer is running so capture can begin without hardware startup latency.
Collaborator

kReview review

Verdict: no findings

No findings to address in the reviewed diff.

Low regression risk; no concrete correctness or security defects are provable from the supplied diff.

Reviewed by kReview at 74d35be609. This comment is conservative and based only on the PR diff and metadata.

Est. cost ~$0.66 total (108.5k in / 6.2k out) · this run ~$0.15 (27.5k in / 1.1k out) / gpt-5.6-sol.

<!-- codex-forgejo-review --> <!-- codex-forgejo-review-head:74d35be609870e1d5bccc5d689254e95613e7dc0 --> ## kReview review **Verdict:** no findings No findings to address in the reviewed diff. Low regression risk; no concrete correctness or security defects are provable from the supplied diff. _Reviewed by kReview at `74d35be609`. This comment is conservative and based only on the PR diff and metadata._ _Est. cost ~$0.66 total (108.5k in / 6.2k out) · this run ~$0.15 (27.5k in / 1.1k out) / gpt-5.6-sol._ <!-- codex-forgejo-review-state:eyJoZWFkU2hhIjoiNzRkMzViZTYwOTg3MGUxZDViY2NjNWQ2ODkyNTRlOTU2MTNlN2RjMCIsInN1bW1hcnkiOiJMb3cgcmVncmVzc2lvbiByaXNrOyBubyBjb25jcmV0ZSBjb3JyZWN0bmVzcyBvciBzZWN1cml0eSBkZWZlY3RzIGFyZSBwcm92YWJsZSBmcm9tIHRoZSBzdXBwbGllZCBkaWZmLiIsImZpbmRpbmdzIjpbXSwiY3VtdWxhdGl2ZUNvc3QiOnsidXNkIjowLjY2MTYyOSwiaW5wdXRUb2tlbnMiOjEwODQ2NSwib3V0cHV0VG9rZW5zIjo2MjA0LCJtb2RlbCI6ImdwdC01LjYtc29sIn19 -->
kleb merged commit df026df92b into main 2026-07-25 14:07:33 +02:00
kleb deleted branch fix/recording-start-capture 2026-07-25 14:07:33 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kleb/VoiceTyper!11
No description provided.