Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Cloud Speech to Text not working properly #56

Open
bhargav015 opened this issue Sep 12, 2020 · 1 comment
Open

Google Cloud Speech to Text not working properly #56

bhargav015 opened this issue Sep 12, 2020 · 1 comment

Comments

@bhargav015
Copy link

bhargav015 commented Sep 12, 2020

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,
* to get the singleton object throughout the app*/
val credentials = GoogleCloudCredentials.fromAsset(applicationContext, "credentials.json")

    GoogleCloudTextToSpeech.Config(Gender.FEMALE)
    val textToSpeech = GoogleCloudTextToSpeech(applicationContext, credentials, Locale.ENGLISH)
    val speechToText = GoogleCloudSpeechToText(credentials, Locale.ENGLISH)

    //val dialogApi = AimyboxDialogApi("your Aimybox project API key", unitId)
    val unitId = UUID.randomUUID().toString()
    val dialogApi = DummyDialogApi()
    aimybox = Aimybox(Config.create(speechToText, textToSpeech, dialogApi))`

And here is the code to start recognizing the speech

aimybox.startRecognition()

Please provide the solution quickly.

@morfeusys
Copy link
Collaborator

What error do you see in the logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants