Android: Listen to a voice command (all the time)

I have a pretty popular application on the Android market that allows tens of thousands of users to click a button and give it a voice command. Then I can do many different things, for example, give them the current weather forecast, etc.

In any case, I came to the point where users of my application asked me almost every day that they did not want to press the button all the time. They want my application to be launched using a trigger word (a specific word command). Thus, the application will wake up and ask them for a voice command, free of hands.

I understand that this will require non-stop listening, it may be a battery eater, etc. But I want to try. Anyway, that’s why I’m here. I just don't know how to do this.

I know that this is possible, these guys did it, and not only that, they listen to the trigger word, even when the phone is in sleep mode or behind a locked screen: http://www.youtube.com/watch?v=Dd2vo_9euOY

Any ideas on how to do this? How did the guys do it? How? Any examples?

Thanks in advance.

+6
source share
1 answer

NoiseAlert is an application that starts when there is a loud external noise, it draws attention to the amplitude of the noise, and also contains wakelocks.

You can use this as a link. I think you have already implemented the Speeck recognition part.

+1
source

Source: https://habr.com/ru/post/901967/


All Articles