EricBatlle / UnityAndroidSpeechRecognizer

🗣️ Speech recognition on Unity and Android without the annoying google popup!
MIT License
60 stars 12 forks source link

apk works but my build doesn't #13

Closed ftmabt closed 1 year ago

ftmabt commented 1 year ago

the apk works on my device but my own build from the demo doesn't; like it doesn't record my voice. is there some unity setting for it? my device is xiaomi a3 and the app has microphone permission.

also i have a question does it support persian language? (fa-IR)

EricBatlle commented 1 year ago

Hey @ftmhabt, thanks for using my plugin. I need more details to know what is happening, do you have any android logcat to show to me? There's no extra setting that you need to set, just plug and play.

And yes, it supports persian language, you only need to call it like: plugin.StartListening(true, "fa");

ftmabt commented 1 year ago

Hi @EricBatlle Thank you for the plugin and for answering! sure here Screenshot 2023-05-05 195653

when i touch Start Listening button it says bind to recognition service failed.

ftmabt commented 1 year ago

I just added this line in AndroidManifest.xml and it works very well. thanks again! `

`

ftmabt commented 1 year ago

sorry i keep coming back. i used your code for persian language but it still returns english words? i even replaced "en-US" with "fa" in all four scripts and removed language dropdown but it's still english.

EricBatlle commented 1 year ago

Try using "fa-IR" and let me know the results please

ftmabt commented 1 year ago

It worked. Thank you so much!! you're a lifesaver