Webkitspeechrecognition not working on chrome [closed]

I used webkitspeechrecognition for speech to text converter project but webkitspeechrecognition is working only in bing and not working in chrome. not working it is working but is active for only a certain time interval and after that the mic is turning off. Please help!!

tried adding set time interval, also tried exporting this line

const recognition = new SpeechRecognition();