aimybox-android-sdk icon indicating copy to clipboard operation
aimybox-android-sdk copied to clipboard

Google clous speechkit is not working properly

Open bhargav015 opened this issue 4 years ago • 0 comments

I am using the latest version of core AimyBox SDK and using Google cloud speechkit for the Text to Speech and for Speech to Text as well. But the problem is, it is not wokring continously and it stopped recognizing the speech after some random amount of time. And I am not getting any error in the logcat. So I am not able to find the root of an issue.

Here I am posting the code that I have written

` val credentials = GoogleCloudCredentials.fromAsset(applicationContext, "credentials.json")

    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))`

Help me to find the solution as it is urgent

bhargav015 avatar Sep 14 '20 06:09 bhargav015