Update SpeechRecognition.tsx

This commit is contained in:
bsu3338 2023-08-09 15:36:55 -05:00 committed by GitHub
parent c7ffb25217
commit 10e3be58a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ const useSpeechRecognition = (ask) => {
return () => {
window.removeEventListener('keydown', handleKeyDown);
};
}, [isListening]);
});
return { isSpeechSupported, isListening, text, toggleListening };
};