From 97d34592d51f29a44c56ad8c1d54c64a5aff6fac Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 13 Apr 2024 21:22:30 +0200 Subject: Fix SpeechRecognition on Phone --- g4f/gui/client/static/js/chat.v1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/gui/client/static') diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js index 9194ad4f..4ba0cd93 100644 --- a/g4f/gui/client/static/js/chat.v1.js +++ b/g4f/gui/client/static/js/chat.v1.js @@ -1288,7 +1288,7 @@ if (SpeechRecognition) { }; recognition.onresult = function(event) { window.clearTimeout(timeoutHandle); - timeoutHandle = window.setTimeout(may_stop, transcript ? 10000 : 8000); + timeoutHandle = window.setTimeout(may_stop, 8000); if (!event.results) { return; } -- cgit v1.2.3