just-ai / aimybox-android-assistant

Embeddable custom voice assistant for Android applications
https://aimybox.com
Apache License 2.0
226 stars 52 forks source link

Google Cloud Speech to Text not working properly #56

Open bhargav015 opened 3 years ago

bhargav015 commented 3 years ago

I am using core library for core functionality in my app. that is 'com.justai.aimybox:core:0.11.0'. and I am using Google cloud speechkit for TTS and STT APIs.

The problem is that speech recognization is not working many times. Sometimes it works and somtimes its not. And even if it starts recognizing the speech. It stopps after recognizing few words. Please let me know what is the issue and how to resolve it very quickly. I am posting the code here that I am using

Below is the code for Initializing Aimybox

`//[START] Initializing Aimybox assistance at the application level,

And here is the code to start recognizing the speech

aimybox.startRecognition()

Please provide the solution quickly.

morfeusys commented 3 years ago

What error do you see in the logs?