From ced63fdb2a50d39d558a661dfde603ee8fb3dde8 Mon Sep 17 00:00:00 2001 From: Moepchi Date: Fri, 23 Oct 2026 18:10:01 +0000 Subject: [PATCH] Make continuous transmission and typing attenuation work Continuous transmission is a third activation mode next to push-to-talk and voice activation (the toolbar hides the VAD slider then). Typing attenuation damps the mic to 10% for 0.2 s after each keystroke, so typing in the client doesn't trigger voice activation. Both off by default. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- web/src/App.tsx | 61 ++++++++++++++++++++++++++++++++++++++++++++---- web/src/voice.ts | 17 +++++++++++++- 2 files changed, 72 insertions(+), 6 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index 0378102..a1a55c9 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -404,6 +404,8 @@ const OTHER_MIC_CLICKS_KEY = "webspeak3:other-mic-clicks"; const AEC3_ENABLED_KEY = "webspeak3:aec3-enabled"; const VAD_HANGOVER_KEY = "webspeak3:vad-hangover"; const PUSH_TO_TALK_KEY = "webspeak3:push-to-talk"; +const CONTINUOUS_KEY = "webspeak3:continuous-transmission"; +const TYPING_ATTENUATION_KEY = "webspeak3:typing-attenuation"; const PTT_BINDING_KEY = "webspeak3:ptt-key"; const DESIGN_THEME_KEY = "webspeak3:design-theme"; // The user's actual pick - "standard" | "nova" | "greenteaspeak" | "custom:". @@ -5549,6 +5551,10 @@ interface AudioSettings { onVadHangoverChange: (v: number) => void; pushToTalk: boolean; onPushToTalkChange: (on: boolean) => void; + continuous: boolean; + onContinuousChange: (on: boolean) => void; + typingAttenuation: boolean; + onTypingAttenuationChange: (on: boolean) => void; pttBinding: PttBinding | null; onPttBindingChange: (binding: PttBinding) => void; noiseSuppressionEnabled: boolean; @@ -5785,15 +5791,26 @@ function AufnahmePanel({ audio }: { audio: AudioSettings }) { )} @@ -5832,7 +5849,11 @@ function AufnahmePanel({ audio }: { audio: AudioSettings }) { {t("recording.dsp")}