JamesBrill / react-speech-recognition

💬Speech recognition for your React app
https://webspeechrecognition.com/
MIT License
637 stars 116 forks source link

The speechrecogination dosen't work #209

Open Youssefmb opened 1 month ago

Youssefmb commented 1 month ago

`const { transcript, listening, browserSupportsSpeechRecognition } = useSpeechRecognition();

if (!browserSupportsSpeechRecognition) {
    return <span>Browser doesn't support speech recognition.</span>;
}

`

` <>

                <div className='position-absolute ml-4' style={{ 'top': '40rem' }}>

                    <p className='text-white'>AI detector : {listening ? 'on' : 'off'}</p>
                    <Button className='mr-1' onClick={SpeechRecognition.startListening({ continuous: true })}>Start</Button>
                    <Button className='mr-1' onClick={SpeechRecognition.stopListening}>Stop</Button>
                </div>
            </>

`

here the transcript is not appair in the textArea or any other balise , i think it dosen't work , why?

Youssefmb commented 1 month ago

i solve it , i just change the default microphone of the device.