1

I created a very basic app where the app listens to what the user is saying and then prints it out. When I am connected to the internet, it play the "record start" sound to let users know that the recognition has started and then after some time "record end" sound to let them know that the recognition has ended.

When I am offline, the app plays the "record start" sounds and then instantly plays the "record end" sound. In other words, it does not record anything. How can I make the app usable in offline mode?

Neena Vivek
  • 667
  • 7
  • 19
  • Possible duplicate of [Android voice recognition API offline](http://stackoverflow.com/questions/22684340/android-voice-recognition-api-offline) – Pavneet_Singh Nov 05 '16 at 05:52
  • @PavneetSingh As far as I can tell the files are available offline. Why would the starting and end of speech recognition triggered at once because I am offline? :) – Neena Vivek Nov 05 '16 at 06:41
  • 1
    have you checked the log , there suppose to be some indication about why this is happening and do mention your testing environment details – Pavneet_Singh Nov 05 '16 at 06:46

1 Answers1

0

I'm not sure that the cordova plugin is supporting offline recognition mode. However you can still use this library instead.

glemiere
  • 4,790
  • 7
  • 36
  • 60