snipsco / snips-issues

Feel free to share your bugs with us.
14 stars 5 forks source link

[Android] Can't use Google ASR #205

Closed Pravez closed 4 years ago

Pravez commented 4 years ago

What's the issue? I wish to use Google ASR on my Android app integrating Snips. I modified correctly in the console how my app is built, and when loading the snips platform on android, it crashes.

Version and Environment Samsung S8+ with android sdk 28

Logs Here is what logs the snips platform when crashing :

E/SnipsPlatform: got an error from the snips processing service: Error(message=ASR failed to start
     -> caused by: Missing following file(s) [
        "/data/user/0/com.test.test/files/assistant/custom_asr/a.snips",
        "/data/user/0/com.test.test/files/assistant/custom_asr/w.snips",
        "/data/user/0/com.test.test/files/assistant/custom_asr/l.snips",
        "/data/user/0/com.test.test/files/assistant/custom_asr/r.snips",
        "/data/user/0/com.test.test/files/assistant/custom_asr/config.json",
    ]
    , shouldRetry=false)
E/SnipsPlatform: got an error from the snips processing service: Error(message=Can't send buffer to audio channel
     -> caused by: sending on a closed channel
    , shouldRetry=false)

The fact is that I couldn't find anywhere in your documentation if it is stated that Google ASR can be used on your Android implementation. It is maybe why it does not work and also why the error message states that files are missing.

Also, I did find that snips-asr-google was deprecated and that it will not be fixed. I suppose it is the same on android ?

Thank you for your help,

fredszaq commented 4 years ago

Google asr is not supported on android, and it is not planned to support it.