AlexaAndroid
AlexaAndroid copied to clipboard
Complete handsfree
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.
There are two ways to achieve.
- Once server understands the question we will receive "Stop Capture" from server in downchannel. Once Its receive we have to stop listening.
- Downchannel may not work some times due to some exceptions. so where we can use this line of code. while (mRawAudioRecorder != null && !mRawAudioRecorder.isPausing()) { }