Closed n-droidev closed 3 years ago
Library cant recognize speech offline.
More details?
I didnt know what is the problem.. But I realized that Library cant recognize speech with setPreferOffline method.. Briefly if I call setPreferOffline(true) method, Library cant recognize speech. Stops immediately..
And I have another question.. How Can I make library recognize speech in other languages. It recognize only english. Even after I set Speech.getInstance(this).setLocale(Locale.Something).
The library is a wrapper over Google Voice Search. If that doesn't work it means offline voice settings on the device are not enabled and the language you tried is not downloaded. You can try the demo app and I think you will get the same result. This is unfortunately out of the scope of the library and you have to look at Google voice Search native interface. As far as I know there's no way to force or request a language to be downloaded for offline usage.
Ok.. Thank you very much.
Speech recognition doesnt work.. It calls onSpeechResult method immediately after onStartOfSpeech method.