react-native-voice / voice

:microphone: React Native Voice Recognition library for iOS and Android (Online and Offline Support)
MIT License
1.84k stars 495 forks source link

Locale parameter is not working. #86

Open Louis-7 opened 6 years ago

Louis-7 commented 6 years ago

I use code in example Voice.start('en-US'); But "en-US" is not working on my phone. My system language is Chinese, every time I speak English, the result is Chinese but not English. So this parameter is not working at all.

Any other way to start voice recognition with specific language?

jamsch commented 6 years ago

en_US should work for iOS and Android.

Louis-7 commented 6 years ago

So the document is wrong? I did some test just now and seems my Phone's setting have influence to this library.

My Phone have it's own "Voice Search" setting, this library can working well if I set it to "English". If I set it to "Chinese", the recognition result is English but the content is wrong.

Winglonelion commented 6 years ago

so, did en_US worked for all case ?

Louis-7 commented 6 years ago

@Winglonelion at least it's worked for me. More discussion here -> https://github.com/wenkesj/react-native-voice/pull/87

Winglonelion commented 6 years ago

i hope it can full replace for en-US, because some recognizing system use en_US as default local tag

lfoliveir4 commented 4 years ago

@Louis-7 Did you solve your problem??

Louis-7 commented 4 years ago

@lfoliveir4 I haven't work on that project for a long time. But 'en_US' was work for me last time. I raise the PR but it still opens now. If there is no other one find this issue on their device I think we can close this issue.