just-ai / aimybox-android-sdk

Voice assistant SDK for Android
https://aimybox.com
Apache License 2.0
74 stars 16 forks source link

How to add a custom TTS and play voice? #121

Open YitouQiongdiaosi opened 2 years ago

YitouQiongdiaosi commented 2 years ago

In some situation I need to play a exception voice to inform user , I tried to add those code like the following figure image but I have no idea create a second-speech.

Anyway,I want to add a TTS ,I describe the function 1.I add a speak and it work well,but I add speak twice,it didn't speak.In logs,I saw "[DefaultDispatcher-worker-3] Speech sequence synthesis completed",but no voice speak. 2.When I restart app,the speak can work again.

What should I do ? Hope your reply,thx