Closed JamesBrill closed 7 years ago
You can configure the default initial state of the Speech Recognition API. To change these defaults, you need to pass an options object into the wrapper like so:
const options = { autoStart: false } export default SpeechRecognition(options)(YourComponent)
or in ES7:
@SpeechRecognition(options)
By default, the Speech Recognition API is listening to speech from the microphone. To have the API turned off by default, set this to false.
false
Global options
You can configure the default initial state of the Speech Recognition API. To change these defaults, you need to pass an options object into the wrapper like so:
or in ES7:
@SpeechRecognition(options)
autoStart [bool]
By default, the Speech Recognition API is listening to speech from the microphone. To have the API turned off by default, set this to
false
.