mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 10:50:14 +01:00
Update SpeechRecognition.tsx
This commit is contained in:
parent
e7d7d7325d
commit
e313637229
1 changed files with 3 additions and 1 deletions
|
|
@ -60,7 +60,9 @@ const useSpeechRecognition = (ask) => {
|
|||
if (event) {
|
||||
event.preventDefault();
|
||||
}
|
||||
setIsListening((prevState) => !prevState);
|
||||
if (isSpeechSupported) {
|
||||
setIsListening((prevState) => !prevState);
|
||||
}
|
||||
};
|
||||
|
||||
return { isSpeechSupported, isListening, text, toggleListening };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue