mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-15 23:43:06 +03:00
Update SpeechRecognition.tsx
This commit is contained in:
@@ -32,6 +32,7 @@ const useSpeechRecognition = (ask) => {
|
||||
|
||||
if (result.isFinal) {
|
||||
setText(transcript);
|
||||
//Enable below code to auto submit
|
||||
//ask({ text: transcript });
|
||||
}
|
||||
}
|
||||
@@ -42,7 +43,7 @@ const useSpeechRecognition = (ask) => {
|
||||
|
||||
recognition.onend = () => {
|
||||
setIsListening(false);
|
||||
setText('');
|
||||
// setText('');
|
||||
};
|
||||
|
||||
if (isListening) {
|
||||
|
||||
Reference in New Issue
Block a user