Handy/src
Viren Mohindra cb32d35b9e
feat(audio): lazy stream close for bluetooth mic latency (#747)
* feat(audio): opt-in lazy stream close for bluetooth mic latency

keep the microphone stream open for 30s after recording stops to
reduce latency on back-to-back transcriptions. gated behind an
experimental setting (off by default) since it keeps the mic actively
capturing while idle — degrading bluetooth audio quality on macOS.

adds lazy_stream_close setting, tauri command, toggle in experimental
settings section, and i18n strings.

* fix: gate lazy close on setting in cancel_recording path

cancel_recording was unconditionally calling schedule_lazy_close,
keeping the mic open for 30s even when the setting was disabled.
also bump close_generation on AlwaysOn→OnDemand switch to cancel
any stale lazy close timers.

* feat(audio): opt-in lazy stream close for bluetooth mic latency

keep the microphone stream open for 30s after recording stops to
reduce latency on back-to-back transcriptions. gated behind an
experimental setting (off by default) since it keeps the mic actively
capturing while idle — degrading bluetooth audio quality on macOS.

adds lazy_stream_close setting, tauri command, toggle in experimental
settings section, and i18n strings.

* fix: gate lazy close on setting in cancel_recording path

cancel_recording was unconditionally calling schedule_lazy_close,
keeping the mic open for 30s even when the setting was disabled.
also bump close_generation on AlwaysOn→OnDemand switch to cancel
any stale lazy close timers.

* chore: fix cargo fmt on model.rs line from main merge

* fix race

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2026-03-19 14:12:43 +08:00
..
components feat(audio): lazy stream close for bluetooth mic latency (#747) 2026-03-19 14:12:43 +08:00
hooks init attempt at new kb (#580) 2026-01-20 08:23:35 +08:00
i18n feat(audio): lazy stream close for bluetooth mic latency (#747) 2026-03-19 14:12:43 +08:00
lib fix: keep Windows microphone guidance Windows-only (#1032) 2026-03-15 22:44:48 +08:00
overlay Add “Processing…” overlay state when post-processing (#740) 2026-02-09 10:36:00 +08:00
stores feat(audio): lazy stream close for bluetooth mic latency (#747) 2026-03-19 14:12:43 +08:00
utils Add Internationalization Support (#437) 2025-12-12 11:16:54 +07:00
App.css better scrollbars on macos 2026-03-18 20:26:02 +08:00
App.tsx fix: keep Windows microphone guidance Windows-only (#1032) 2026-03-15 22:44:48 +08:00
bindings.ts feat(audio): lazy stream close for bluetooth mic latency (#747) 2026-03-19 14:12:43 +08:00
main.tsx better scrollbars on macos 2026-03-18 20:26:02 +08:00
vite-env.d.ts basic working transcription. 2025-02-03 09:26:37 -08:00