mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
Update SpeechRecognition.tsx
This commit is contained in:
parent
d405454bf5
commit
7f101bd122
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue