aimybox-android-sdk
aimybox-android-sdk copied to clipboard
Google clous speechkit is not working properly
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