Closed cgero-eth closed 8 years ago
Hello @RuggeroCino! By looking at your error log, I can see that the exception is a NetworkOnMainThreadException.
Caused by: android.os.NetworkOnMainThreadException
Android does not allow a user to perform network operations from the main thread. Therefore, you have to call the Speaker Recognition SDK asynchronously. One of the ways to do so is using the AsyncTask. You can wrap the getPhrases call in an AsyncTask to avoid this error.
I tried to use the AsyncTask and it works, thank you.
Great! Thanks for the update @RuggeroCino! I'll close this issue for now, please feel free to re-open if you have any further questions.
I started to test this library for android adding it as dependency in the build.gradle file but I get an error on the getPhrases function.
Here is my code:
Here is the error: