Getting error while trying to use react speech recognition module in nextjs

I am trying to implement speech recognition into my next.js website. I downloaded and am trying to use the same code from this link, but I get this error: ReferenceError: regeneratorRuntime is not defined at C:\Users\simer\Downloads\Talkhappi\client\node_modules\react-speech-recognition\lib\RecognitionManager.js:247:61 at C:\Users\simer\Downloads\Talkhappi\client\node_modules\react-speech-recognition\lib\RecognitionManager.js:332:6 at Object.<anonymous> (C:\Users\simer\Downloads\Talkhappi\client\node_modules\react-speech-recognition\lib\RecognitionManager.js:452:2) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:14) at Module.require… Read More Getting error while trying to use react speech recognition module in nextjs

Speech recognition problem in react state

I have a problem with a library react-speech-recognition . newcontent is a state when modify this state inside useeffect print undefined and I also want modify this state for transcript also print undefined const Room = () => { let{ transcript, } = useSpeechRecognition(); const [newContent,setnewcontent]=useState(”) } console.log(transcript)–>//here successful useEffect(() => { console.log(transcript)–>//here undefined setnewcontent(transcript)… Read More Speech recognition problem in react state