summaryrefslogtreecommitdiffstats
path: root/g4f/gui/client/static
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-11 03:11:45 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-11 03:11:45 +0200
commitc1ca4810741afd84ddb49151275f1841bc90d99b (patch)
treed96145e9681c80ae9273d48387cb21a1082b2483 /g4f/gui/client/static
parentAdd ReplicateImage Provider, Fix BingCreateImages Provider (diff)
downloadgpt4free-c1ca4810741afd84ddb49151275f1841bc90d99b.tar
gpt4free-c1ca4810741afd84ddb49151275f1841bc90d99b.tar.gz
gpt4free-c1ca4810741afd84ddb49151275f1841bc90d99b.tar.bz2
gpt4free-c1ca4810741afd84ddb49151275f1841bc90d99b.tar.lz
gpt4free-c1ca4810741afd84ddb49151275f1841bc90d99b.tar.xz
gpt4free-c1ca4810741afd84ddb49151275f1841bc90d99b.tar.zst
gpt4free-c1ca4810741afd84ddb49151275f1841bc90d99b.zip
Diffstat (limited to '')
-rw-r--r--g4f/gui/client/static/js/chat.v1.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js
index fd58be6d..46f7e808 100644
--- a/g4f/gui/client/static/js/chat.v1.js
+++ b/g4f/gui/client/static/js/chat.v1.js
@@ -1273,10 +1273,11 @@ if (SpeechRecognition) {
microLabel.classList.add("recognition");
startValue = messageInput.value;
lastDebounceTranscript = "";
- timeoutHandle = window.setTimeout(may_stop, 8000);
+ timeoutHandle = window.setTimeout(may_stop, 10000);
};
recognition.onend = function() {
microLabel.classList.remove("recognition");
+ messageInput.focus();
};
recognition.onresult = function(event) {
if (!event.results) {
@@ -1297,13 +1298,12 @@ if (SpeechRecognition) {
messageInput.value = `${startValue ? startValue+"\n" : ""}${transcript.trim()}`;
if (isFinal) {
startValue = messageInput.value;
- messageInput.focus();
}
messageInput.style.height = messageInput.scrollHeight + "px";
messageInput.scrollTop = messageInput.scrollHeight;
}
- timeoutHandle = window.setTimeout(may_stop, transcript ? 8000 : 5000);
+ timeoutHandle = window.setTimeout(may_stop, transcript ? 10000 : 8000);
};
microLabel.addEventListener("click", () => {