Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Speech Recognition: "Network error" on startListening() Android 6/7

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>