AlexaAndroid icon indicating copy to clipboard operation
AlexaAndroid copied to clipboard

Complete handsfree

Open tatasadi opened this issue 7 years ago • 1 comments

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.

tatasadi avatar Jan 18 '18 10:01 tatasadi

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()) { }

prasannakumark avatar Feb 05 '18 10:02 prasannakumark