From 1bb0d3895b5c1e48dd9a925a042a42725fd46805 Mon Sep 17 00:00:00 2001 From: impressionyang Date: Thu, 11 Jun 2026 14:22:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=95=BF=E6=8C=89=E9=98=88=E5=80=BC?= =?UTF-8?q?=E8=B0=83=E5=9B=9E=201s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/voice_input_service.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/voice_input_service.h b/src/core/voice_input_service.h index bd278fd..f5866fe 100644 --- a/src/core/voice_input_service.h +++ b/src/core/voice_input_service.h @@ -20,7 +20,7 @@ class ConfigManager; * 协调全局快捷键、音频采集、STT 推理和文本注入。 * 状态机: * 1. 按下 CapsLock → 开始预录音 - * 2. 长按超过阈值(默认 3s)→ 立即复位 CapsLock,正式录音 + * 2. 长按超过阈值(默认 1s)→ 立即复位 CapsLock,正式录音 * 3. 松开 CapsLock → 停止录音 → 推理 → 注入文本 * 4. 短按(< 阈值)→ 注入 CapsLock 按键(切换大小写) */ @@ -44,7 +44,7 @@ public: /** @brief 是否正在录音 */ bool isRecording() const { return recording_; } - /** @brief 长按阈值(毫秒),默认 3000ms */ + /** @brief 长按阈值(毫秒),默认 1000ms */ void setLongPressThreshold(int ms) { longPressThreshold_ = ms; } int longPressThreshold() const { return longPressThreshold_; }