Update SpeechRecognition.tsx

This commit is contained in:
bsu3338
2023-09-03 19:09:51 -05:00
committed by GitHub
parent d405454bf5
commit 7f101bd122

View File

@@ -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) {