diff --git a/Dockerfile b/Dockerfile index 0d0453911..9cb8d6903 100644 --- a/Dockerfile +++ b/Dockerfile @@ -87,7 +87,7 @@ CMD if [ -n "$PROXY_URL" ]; then \ echo "[ProxyList]" >> $conf; \ echo "$protocol $host $port" >> $conf; \ cat /etc/proxychains.conf; \ - proxychains -f $conf "node server.js --host 0.0.0.0"; \ + proxychains -f $conf node server.js --host 0.0.0.0; \ else \ node server.js; \ fi diff --git a/app/components/voice-input.tsx b/app/components/voice-input.tsx index 48cdf8612..d26820873 100644 --- a/app/components/voice-input.tsx +++ b/app/components/voice-input.tsx @@ -59,13 +59,15 @@ export default function VoiceInput({ if (!userInput || userInput.trim() === "") { setTempUserInput(""); setVoiceInputText(""); + recognizer.current?.close(); + recognizer.current = undefined; + setVoiceInputLoading(false); } else { if (!/\[\.\.\.\]$/.test(userInput)) { setTempUserInput(userInput); } } }, [userInput]); - useEffect(() => {}, [tempUserInput]); useEffect(() => { if (voiceInputText.trim() !== "") {