@Daveshirman wrote:
When I run the code below, as soon as the beep sounds to start recording the mic, I get "Network error":
I have no idea what's wrong here. I've:
- added the: cordova plugin + npm module correctly,
- granted permissions in the app for microphone
- tried connected to WIfi
- tried connected to 4g
- tried removing and re-adding the android platform to the project
Any ideas? Thanks!
setupSpeechRecognition() { this.speechRecognition.requestPermission().then(() => { this.speechRecognition.startListening().subscribe( (matches) => { // matches here... }, (onerror) => { alert("Error: " + JSON.stringify(onerror)); } ); }, () => {} ); }
Posts: 1
Participants: 1