willblaschko / AlexaAndroid

A library and sample app to abstract access to the Amazon Alexa service for Android applications.
GNU General Public License v2.0
280 stars 133 forks source link

Complete handsfree #136

Open tatasadi opened 6 years ago

tatasadi commented 6 years ago

I would like to use this library in android, but complete handsfree, without click. (for starting and stoping of speak we need to click on the button.) For starting of speak, I have used this library for a hotword detection: https://github.com/cmusphinx/pocketsphinx-android-demo when I detect the hotword, I click on the button programmatically. But how can I change the code, so that it knows, when I'm done with speaking? Any help would be much appreciated.

prasannakumark commented 6 years ago

There are two ways to achieve.

1) Once server understands the question we will receive "Stop Capture" from server in downchannel. Once Its receive we have to stop listening. 2) Downchannel may not work some times due to some exceptions. so where we can use this line of code. while (mRawAudioRecorder != null && !mRawAudioRecorder.isPausing()) { }