AlexaAndroid icon indicating copy to clipboard operation
AlexaAndroid copied to clipboard

wake up alexa without tap the button to start listening

Open wantitmore opened this issue 7 years ago • 5 comments

how to wake up the app to start listening by voice directly rather than tapping the button? thx :)

wantitmore avatar Dec 11 '17 07:12 wantitmore

https://github.com/alexa/alexa-avs-sample-app

You can get wakewords from Kitt.AI or Sensory. Tried them both, sensory seemed more reliable.

KushtrimPacaj avatar Dec 14 '17 08:12 KushtrimPacaj

@KushtrimPacaj Did you combine these two wakeword engins with AlexaAndroid? Can you describe what you did? Can you post an example of your code. It would be much appreciated.

tatasadi avatar Jan 18 '18 10:01 tatasadi

@Ehsanta83 See this https://github.com/Kitt-AI/snowboy/tree/master/examples/Android for Kitt.Ai.

For Sensory, I'm afraid you'll have to contact them directly.

To combine them with this library, on the callback from wakeword lib, just "click" the alexa button.

KushtrimPacaj avatar Jan 18 '18 10:01 KushtrimPacaj

@KushtrimPacaj Thank you. I did the same thing with another library. Another problem is end of speech detection. I want it to be complete handsfree. Do you have any idea about end of speach detection? I would like not to click the button at the end of speech.

tatasadi avatar Jan 18 '18 10:01 tatasadi

@Ehsanta83 A simple way is included in this library ( check the method here ): https://github.com/willblaschko/AlexaAndroid/blob/35f259b9e1484b340498312ea0ba5bf6a2ddaca2/libs/speechutils-master/app/src/main/java/ee/ioc/phon/android/speechutils/AbstractAudioRecorder.java#L217

It's not optimal, so you might have to tinker with it to get the result you want

KushtrimPacaj avatar Jan 18 '18 10:01 KushtrimPacaj