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_; }