AlexaPi icon indicating copy to clipboard operation
AlexaPi copied to clipboard

[Enhancement] Play wake word feedback in parallel to improve Alexa responsiveness

Open lap-tran opened this issue 8 years ago • 4 comments

This is an enhancement suggestion. Currently we wait until wake work feedback (the "yes" sound) finishes then connect to AVS and then stream recorded voice. Connecting to AVS isn't always fast, can be seconds, and that causes a delay in Alexa respond - very often in my experience. Eventually, we can connect to AVS earlier and make Alexa feel more responsive. Let's start playing "yes" in parallel in another thread while connecting to AVS immediately after the wake word is detected. Then the sound playback thread needs to join back before we start recording and send speech to AVS.

lap-tran avatar Jul 15 '17 08:07 lap-tran

I hacked it locally and Alexa feels a lot smoother.

lap-tran avatar Jul 15 '17 08:07 lap-tran

Very good idea, I think there's no problems to do that. If you have done it, you can push your local git to Github and make a pull request.

Emerick

EmerickH avatar Jul 21 '17 18:07 EmerickH

@lap-tran Can you open a PR with this?

renekliment avatar Oct 14 '17 20:10 renekliment

This sounds like a great idea, it always seemed kinda laggy to respond.

makew0rld avatar Oct 16 '17 21:10 makew0rld