Skip to content

Commit

Permalink
add error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Feb 27, 2025
1 parent 0b2b80a commit 3bf3a01
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const SpeechRecorder = ({

const isSupported = Boolean((window as any).SpeechRecognition || (window as any).webkitSpeechRecognition);

if (error) console.error(error);
useEffect(() => {
if (recognitionRef.current) {
recognitionRef.current.stop();
Expand Down

0 comments on commit 3bf3a01

Please sign in to comment.