增加了单击启动对话和长按期间对话,默认使用短按启动对话

This commit is contained in:
CSBOOK\44744
2026-07-02 14:02:51 +08:00
parent bc74db61a9
commit 404389f1ea
6 changed files with 104 additions and 77 deletions
+30
View File
@@ -278,6 +278,36 @@ menu "Example Configuration"
help
Ignore raw GPIO chatter briefly after a double-click has been emitted.
choice TQ_PTT_INTERACTION_MODE
prompt "PTT interaction mode"
default TQ_PTT_MODE_CLICK_TO_TALK
depends on TQ_KEY_INPUT_ENABLE
help
Select how the PTT key controls multimodal speech input.
config TQ_PTT_MODE_CLICK_TO_TALK
bool "Click-to-talk"
help
A short press opens one bounded speech-input window. Double-click
remains available for the PTT double-click expression and does not
start speech input.
config TQ_PTT_MODE_HOLD_TO_TALK
bool "Hold-to-talk"
help
Preserve the original behavior: press and hold starts speech input,
release stops speech input.
endchoice
config TQ_PTT_CLICK_CAPTURE_TIMEOUT_MS
int "PTT click-to-talk capture timeout (ms)"
default 8000
range 1000 60000
depends on TQ_KEY_INPUT_ENABLE && TQ_PTT_MODE_CLICK_TO_TALK
help
Maximum microphone capture window started by one PTT short press.
When it expires, uplink capture is stopped and StopSpeech is sent.
endmenu
menu "TQ Screen"