Handy/src-tauri/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
..
audio_toolkit feat(audio): use device default sample rate and always downsample (#1084) 2026-03-19 08:53:03 +08:00
commands Migrate to transcribe-rs-0.3.1 and add Canary support (#1023) 2026-03-16 16:31:44 +08:00
helpers WIP: Add tauri-specta for generating TS bindings (#322) 2025-11-27 17:07:22 +07:00
managers feat(audio): lazy stream close for bluetooth mic latency (#747) 2026-03-19 14:12:43 +08:00
shortcut feat(audio): lazy stream close for bluetooth mic latency (#747) 2026-03-19 14:12:43 +08:00
actions.rs fix: keep Windows microphone guidance Windows-only (#1032) 2026-03-15 22:44:48 +08:00
apple_intelligence.rs feat: implement structured outputs for post-processing providers (#706) 2026-02-17 12:14:00 +08:00
audio_feedback.rs feat: add portable mode to NSIS installer (#807) 2026-03-06 12:07:11 +08:00
cli.rs feat: add CLI parameters for linux (#792) 2026-02-17 12:48:43 +08:00
clipboard.rs Add "external script" paste method (#638) 2026-02-19 17:07:16 +08:00
input.rs refactor enigo input (#441) 2025-12-12 16:33:49 +07:00
lib.rs feat(audio): lazy stream close for bluetooth mic latency (#747) 2026-03-19 14:12:43 +08:00
llm_client.rs feat: implement structured outputs for post-processing providers (#706) 2026-02-17 12:14:00 +08:00
main.rs feat: add CLI parameters for linux (#792) 2026-02-17 12:48:43 +08:00
overlay.rs attempt to clean up warnings on build (#1037) 2026-03-14 11:42:42 +08:00
portable.rs feat: add portable mode to NSIS installer (#807) 2026-03-06 12:07:11 +08:00
settings.rs feat(audio): lazy stream close for bluetooth mic latency (#747) 2026-03-19 14:12:43 +08:00
signal_handle.rs attempt to clean up warnings on build (#1037) 2026-03-14 11:42:42 +08:00
transcription_coordinator.rs fix: transcription lock-up race condition & add small debounce (#824) 2026-02-16 22:18:50 +08:00
tray.rs be able to change models from the tray (#1002) 2026-03-14 12:19:06 +08:00
tray_i18n.rs fix(i18n): tray menu shows Simplified Chinese when Traditional Chinese is selected (#901) 2026-03-01 10:39:14 +07:00
utils.rs fix: transcription lock-up race condition & add small debounce (#824) 2026-02-16 22:18:50 +08:00