Ionic Hands Free Voice Activation

Hello guys,

I’ve been trying to create a “Google Now” & “Dragon - Personal Assitant” clone for a project. Creating a button to listen to the user doesn’t seem too much of a problem. However, I don’t know how to create “hands-free voice activation” like how Google Now has it. You are able to say “Ok Google” instead of pressing the mic button for the app to listen to you.

Is there a way to pull this off in Ionic?

Hands free voice activation is something only the operating system can do. It means your phone must always be listening, and if a bunch of apps all did that there could be privacy issues, battery issues, etc.

However, you can tap into the operating systems limited number of commands, for instance if you made a reminder app you could have it listen for the “Set Reminder” voice task that Google Now supports, and the user could choose your app instead.

But…no Cordova plugin for this afaik, but if you’re feeling ambitious here’s the docs for Android, you could always write your own :slight_smile:

Regular speech to text is much simpler, so you might just be better off with a button

1 Like