[Android Software Development] lukes91:
Guide

How to merge Xposed, Tasker, Autovoice and Google Now all together

​

Hi Guys!

This is a guide about how to integrate tasker, xposed, autovoice and google now and get our device to work with voice (even when screen is off)

Read carefully the disclaimer and follow the guide only if you know what you’re doing :p

​

Credits

Purpose

Disclaimer

Requirements

Missing parts

My setup

Let’s start

When you have met all the requirements, you can start:
​

Google api configuration:

​

1) Open google api and tick both checkboxes and be sure autovoice is inside plugin list

Autovoice configuration:

​

1) Open autovoice and toggle continuous listener switch on

2) enable google now api integration

3) Edit search type to “both”

Tasker configuration:

**if you want, you can download a minimum working profiles setup from OP#3, but i suggest you to read ths part anyway**

​

Here there is the real important part… you will have to setup different tasks and toggles to have everything working, also because when you start google now autovoice continuous mode stops working and you have to re-enable it…

Keep in mind that if you want to perform tests or change anything during configuration you might need to restart autovoice continuous mode manually, as sometimes it stops working after configurations…

Nothing to worry about anyway ;)

Moreover, if you restart autovoice, pay attention to be in tasker home screen after setting up a task or a trigger, because if you have any pending task/profile configuration autovoice continuous mode might not work properly

p.s. I had those issues on my device with many other tasker triggers and tasks, so you might not encounter them along you way :)

if Tasker asks you Root permissions, give them to it…

I set my recognition language to en-EN because I’m Italian, infact when I talk to my phone I prefer to do this in English so I will not trigger anything while speaking to my friends J. I also set up a trigger word (viper in my case) so if I’m talking to someone and I say “home” my device will not reconfigure itself for home (to do that I will have to say “viper home”)

When prompting a command after a trigger word, wait a couple of seconds and I suggest you to setup a timeout for command recognition after trigger word…

My device has not an unlock pattern/sim/password, so it’s quite simple to wake it up with a word… if your device has some security lockscreen protection, search in tasker/secure settings instructions how to remove it and re-enable it again (only required if you want your device to listen to you even if its screen is off)

allow tasker external access in preferences and also uncheck beginner mode (should work even without external access, but not sure)

1) Setup a state trigger, call it Autovoice Daemon, search for plugin/Assistant Event for tasker, click it and click “pencil icon in top-right corner” after configuration: it will auto configure itself, do not do anything else here

2) Link a task to it, call it Autovoice Daemon and add plugin/Autovoice Recognize and configure it like mine

edit language according to your likings

3) Create a new state trigger, call it Autovoice Google, search for plugin/Autovoice Recognized and configure it this way: event behaviour “true”, command filter is “google” and trigger word is “viper” (that's for me, you can change it as you prefer)

4) Link a task to it, call it GN and set it up this way

--to setup secure settings, click add/plugin/secure settings and configure them… you will need 3: the first one is to enable keyguard, the second one to disable it and the third one is to wake device (set it to wake both screen and keyboard)

Now, if you restart the autovoice continuous mode and turn display off, after saying “viper google” Google Now should appear on display and you can say "ok google" to do what you want (in the language you want)… google api integration is required to let google handle autovoice triggers

Remember that launching google now will break autovoice continuous mode, so you will need to find a way to disable continuous mode and to re-enable it according to your needs… tasker can easily handle that…

For example I set tasker to turn off continuous mode when google now is opened and to turn it on again when I lock device (this is enough for my likings :))

I also set the phone to vibrate after recognition of “viper” trigger word, so I know when the trigger word has been accepted and I can tell the command…

Possibilities are unilimited :D let your fantasy guide you ;)

Hope you liked the guide, if I missed something or you want more explanations, tell me please :)

have a nice day!

XDA:DevDB Information

Voice Control with Xposed, Tasker, Autovoice, Google Now, a Tool/Utility for the Android General

Contributors

lukes91

Version Information

Status: Stable

Created 2014-03-29

Last Updated 2014-03-29