yashsingh1/xdaforums huggingface dataset:
[Android Software Development] lukes91:
I will try to give everybody enough infos to get the configuration work... Just post every doubt/issue here, i'll try to help the best i can :)

Sent from Somewhere Over The Rainbow...
[Android Software Development] lukes91:
edited OP#3

I applied the fix to get autovoice work without timeout, so voice recognition daemon should't be killed by android after a certain amount of time... you can get the fix in 2 ways:

**Download profiles zip and import again the Autovoice_Daemon profile

**Open the one you have inside tasker, click on "Autovoice daemon" on the right side of the green arrow, click on "Autovoice Recognize" and set timeout (seconds) to "never" by dragging the bar to the right side

:good: :)
[Android Software Development] r2d2_boss:
How to kill the annoying beep on autovoice? Any idea?

Thanks
[Android Software Development] lukes91:
does it happen in specific conditions? or always?
[Android Software Development] r2d2_boss:
It does all the time if I put the toggle listener On (on autovoice)
[Android Software Development] lukes91:
Search the web, I've read somewhere that it"s related to google now version...

Sent from Somewhere Over The Rainbow...
[Android Software Development] Daedulus Minion:
Thanx a lot for your guide. Tested this on Galaxy Note 2 N7100 running Ditto Note 3 rom.
[Android Software Development] lukes91:
thanks to you, i'll add the configuration in OP and i'll give you credits :)
[Android Software Development] LifeAsADroid:
Aww snap! I have my profiles so close to making this work! A couple of issues I am having, hopefully someone can help me out:

1) EDIT: My bad, the post on page 6 switching the Autovoice Daemon to "never" fixed this issue. Thanks! :)

2) EDIT: I'm also having some issues having tasker restart the keyguard (like say, when the phone screen is turned off) to re-secure the phone when I'm all finished "OK Google"ing. Any ideas? EDIT EDIT: Lol, sorry for all the corrections, but I managed to get this one fixed as well. Used an "event" of turning the display off instead of a "state" of display off, and also set the timeout to "never". Worked like a charm.

3) Has anyone been able to write a good set of task profiles for tasker to turn off and on again the autovoice continuous listening function? I have tried a few times, but either tasker isn't checking frequently enough for tasks to run or I have set something up wrong. Can someone help me out with this? EDIT: Lol, got this one fixed as well, did the same thing as #2, used an "event" of display on and off instead of a "state" to turn the Autovoice Continuous off and on.

Thanks for putting this together for all of us OP!
[Android Software Development] lukes91:
I think that toggling on/off autovoice continuous mode with tasker according to google now status is quite difficult because google now won't be killed as soon as display is turned off.... I'm still working on it as now i've lot of private stuff to face... As soon as it will be ready, i'll post it along with a video showing the whole procedure (if i have enough time)

Sent from Somewhere Over The Rainbow...
[Android Software Development] LifeAsADroid:
Thanks man! I edited my post two spots up with how I fixed the issues I was having. Was working with it right after I posted and came up with some good ways to start/stop the Autovoice continuous as well as the keyguard to turn back on.

Thanks again for putting this all together for us!
[Android Software Development] lukes91:
You're welcome :) could you share your configuration?

I mean: device and rom...

Sent from Somewhere Over The Rainbow...
[Android Software Development] LifeAsADroid:
Sure thing, sorry forgot to do that before.

Droid RAZR HD Maxx, Android 4.1.2, rooted, unlocked.
[Android Software Development] lukes91:
thanks, added in the OP and given credits :)
[Android Software Development] spiral6:
I think the only concern people would have is the battery life, but good job m8. :)
[Android Software Development] lukes91:
thanks :) yeah, unfortunally battery will drain a lot if autovoice continuous is always on :( but tasker switches can be set to activate continuous mode only in certain situations ;)
[Android Software Development] LifeAsADroid:
First, thanks for adding me to the original post props 8) always glad to help others out and contribute!

Do you happen to have a link to where I can learn how to do some of these "certain situations" for launching or not launching Tasker tasks? I have a feeling it has to do with the "IF" statements, setting variables, or something, but as a noob with Tasker I'm yet unfamiliar with the "IF" clauses.

I've also noticed I need to add a condition for the autovoice continuous to not be turned on while I'm using Pandora - it shuts down Pandora due to the need to turn autovoice continuous on and listen for commands. I'm guessing that I can "IF" statement something like "only work if Pandora app not running" and "only work if battery is above 35%" or something, right?
[Android Software Development] lukes91:
it doensn't only deal with "if" "else" statements, you can create a profile with a trigger, and the trigger is the first of your conditios... it can be a specific time, an event, a state, a location... for example: a state could be "when display is off" --> perform specific task; you can also add an exit task that will be run when display is on again (sometimes it's better to set 2 different profiles, one with "display turned off" event and the other with "display turned off" event... the best way to learn is to try different configurations, always adding new variables/conditions... remmeber also that in tasker you can declare and set "environment variables" that can be used in all tasks, and even as a trigger to concatenate different tasks... it's plenty of tutorials and guide... i suggest you to start from here :)
[Android Software Development] lukes91:
hi guys! i converted the thread into a DevDB thread, so it will be easier to report bugs and so on... have a nice day all :)
[Android Software Development] leonardoroza:
Thanks

Enviado de meu Moto G usando Tapatalk
[Android Software Development] lukes91:
Hi everybody!

Would somebody be insterested in a tasker set of profiles and tasks that enable continuous listening only when device is connected to car cradle?
[Android Software Development] ivwonka:
I was getting ready to try this out but is there an issue now since Google Search updated? Do we need a new moded Google Search api?
[Android Software Development] lukes91:
well, actually i don't know for sure, i'll try and report back as soon as i can...
[Android Software Development] Zheen:
Not working, I guess because of the latest Google search update

I tried it and it does not work. I cannot integrate AutoVoice with Google now after the recent Google search update. When I say a command to Google now, it only does a Google search, no Tasker task is executed. I see the AutoVoice plug-in in the plug-in section of the Google Now API module, though. Has anybody else noticed it?
[Android Software Development] lukes91:
thank you for testing, i had no free time in the last weeks...
[Android Software Development] lukes91:
i've tried to update apps, and i faced the same issue [MENTION=5839495]Zheen[/MENTION] faced... so either we both are making mistakes or api has to be updated to work with latest google search release... anyway the other profiles seems to work fawlessly even after the update...
[Android Software Development] lukes91:
mistake... xda didn't prompt me my previous post :)
[Android Software Development] Dilshad969:
I have installed everything that you have told but still I am having a problem.

In the tasker when i add a Plugin event then Assistant Event for tasker is not being shown. What is the problem with it.
[Android Software Development] lukes91:
Did you import the profiles or did you create them on your own?
[Android Software Development] Dilshad969:
I have downloaded Assistant Event for tasker from PLAY STORE and by following your tutorial is creating a profile.

For this I am clicking on the + button and selecting event then selecting Plugin and here is the problem I am not getting any plugin named Assistant Event for tasker ; nor after searching it as well.

I am using Rooted MOTO E
[Android Software Development] lukes91:
i'll try to reproduce the issue on my hox and i'll be back asap...

edit: [MENTION=4766498]Dilshad969[/MENTION] you have to set up a state trigger, not an event one... then in plugin you'll find the assistant event :)
[Android Software Development] johentie:
Hello.. so i am new to the world of Tasker and autovoice...

I am trying some tests out to see how effective this is but i notice that most of the time after saying the Google Now command (command filter) it takes ALONGGGGGG time to execute!

i tried a simple FLASH toast message after saying "test" and it took 5 seconds sometimes 10 seconds to show the Flash toast message... sometimes it didn't happen at all... here is what i did:

When i test it in tasker by pressing play it works instantly...

I have an Lg G3 rooted

the problem with the delay is that i have a automatic LOCK/UNLOCK device.. Lockitron it's called... its on wifi and it wakes up for a certain amount of time before it sleeps..

since the command takes so long to execute the lock goes to sleep

Edit:

when i use continuous mode it works really quickly... when i do it through google now it;s very slow.. i need google now on cause then i can use it through my moto 360..and continuous mode doesn't work all the time
[Android Software Development] lukes91:
So you are facing issues when trying to execute a tasker's task through Google now, am i right? If so it might be related to the Google version, working bad with the api...
[Android Software Development] oldman20:
Excuse me, but I'm newbie to use tasker, now im using version 4.5 and I dont know how to configure it to auto switch airplane mode. Im searching on Internet, but all of them guide use old version, so I dont know how to do it. Anyone can help me, please? Thanks your attention[emoji15]
[Android Software Development] lukes91:
I think you need secure settings... If i've time i'll try and let you know...

Sent from here
[Android Software Development] oldman20:
Many thanks! I will look for new from you. Thanks again[emoji5]
[Android Software Development] lukes91:
install secure settings via play store, goto tasker, add task, clic "+", select plugin, selecty secure settings, click the pencil, select system+ actions, select airplane mode and set it to on, off or toggle... will work :)
[Android Software Development] oldman20:
Thanks your help, but i dont see where to find select plugin like that you told? I installed secure setting!

Would you make a screenshots details step by step, please? In task version 4.5. Thanks you so much[emoji5]
[Android Software Development] 78Staff:
After installing, run secure settings outside of tasker, go to System+ tab, and enable it.

Now start tasker. First off, most turn off beginner mode in settings, it allow your more options.

Then, what you basically want to do is create a profile, and attach a task to it. Think of the profile as what triggers your task. It could be any or many things, ie time based, location based, network based, signal based, etc. Then you create a task. Name it, and on the next screen, click the + at the bottom, which will pop up a table of options - choose plugin, then secure settings, next screen choose configuration, and then go to the airplane mode option and go from there. Airplane Mode is usually under root actions...

check out the Tasker link in my sig, it has a nice set of tutorials to get you up and running and show you all the neat and crazy stuff you can do with Tasker :).
[Android Software Development] oldman20:
Very detail, Thanks much[emoji5]. I got it
[Android Software Development] oldman20:
Hey Mr 78Staff: I have a trouble! After config, I tested it. But it only working if I press play button in task tab, like this

And when I setup time to auto switch airplane mode, nothing happened. This my configure, is that true?

I forgot, one more thing: I don't see row "plugin" like that you told, and I must search in catalog, maybe cause UI in new version
[Android Software Development] 78Staff:
If the task works when manually played, then the task part of the config is correct, but it's apparently not firing based on the condition you've setup (the profile). I suspect you need a start and end time - just having a start/from time only may not work. The below example would run from 12:01am to 6:01am, for instance.

And here's how the basic profile will look...

Profile: AP Example (58)

Time: From 00:01 Till 06:01

Enter: AP Mode On (69)

A1: Secure Settings [ Configuration:Airplane Mode Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]

Try adding an end time and see if that makes a difference.
[Android Software Development] oldman20:
Yes, I forgot write it. Of course I did it before, then it doest work, so I tried change time like that, still not work. I dont know why??
[Android Software Development] 78Staff:
Hmm...you're not on lollipop, are you?

Do me a favor, we've gone off-topic for this thread, please head over to the tasker-specific thread (the link in my sig) and post your actual profile (export description, then copy into post). We'll dig into it further in the appropriate thread.
[Android Software Development] oldman20:
Yep, I using custom rom carbon 4.4.4. Sory, I cant see your signature, im using tapatalk[emoji17]

For give me,Can i post description on this thread?

Profile: Anon (2) Time: From 12:01 Till 12:03 Enter: Airplane (3) Task: Airplane (3) A1: Secure Settings [ Configuration:Airplane Mode Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
[Android Software Development] 78Staff:
EDITED...

Sorry, after I wrote all that I realized I was using the wrong time lol...

OK, this does work for me...

Profile: AP Example (58)

Time: From 12:01 Till 12:03

Enter: AP Mode On (69)

A1: Secure Settings [ Configuration:Airplane Mode Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds): 0 ]

I'll attach xml to the post, import into tasker and set your times as desired and see if it works for you.

Also, here's the thread...

http://xdaforums.com/showthread.php?t=1110775
[Android Software Development] 78Staff:
Updated previous reply
[Android Software Development] oldman20:
Excuse, but how to import xml into tasker? I found only "input" row like this, but it cant saw xml, or zip file I downloaded
[Android Software Development] 78Staff:
that's it - select import, navigate to the xml file and select it.
[Android Software Development] oldman20:
I navigated to the folder which contain xml, but it doesn't recognize xml file [emoji17]
[Android Software Development] lukes91:
There is a tutorial somewhere in the thread for importing files... Read it and try...

Sent from here
[Android Software Development] oldman20:
Can you give me the link? Im online via tapatalk, too hard to find it
[Android Software Development] lukes91:
http://xdaforums.com/showthread.php?p=50660024

Sent from here
[Android Software Development] oldman20:
Here what every I did, but cant see xml, I dont know why?
[Android Software Development] 78Staff:
I've seen import issues with Tasker, diff versions, etc..

here;s the xml, just copy and save to a xml file on phone and try...

<TaskerData sr="" dvi="1" tv="4.5u1m">
<Profile sr="prof58" ve="2">
<cdate>1415975695599</cdate>
<edate>1416026325784</edate>
<id>58</id>
<limit>true</limit>
<mid0>69</mid0>
<nme>AP Example</nme>
<Time sr="con0">
<fh>12</fh>
<fm>1</fm>
<th>12</th>
<tm>3</tm>
</Time>
</Profile>
<Task sr="task69">
<cdate>1415975713919</cdate>
<edate>1416026325784</edate>
<id>69</id>
<nme>AP Mode On</nme>
<Action sr="act0" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Airplane Mode Enabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.ENABLED>true</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>airplane_mode</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Airplane Mode Enabled</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
</Task>
</TaskerData>
[Android Software Development] oldman20:
Many thanks, but i using phone, so hard to copy xml code with format, can you attach txt file, please?
[Android Software Development] 78Staff:
hmm, well It's already attached to post above http://xdaforums.com/showpost.php?p=56767062&postcount=101. Just d/l, unzip and open with any editor, preferably one that supports xml.

And, here is the forum for Tasker help, again - http://xdaforums.com/showthread.php?t=1110775.
[Android Software Development] oldman20:
Still didn't work, I opened your xml file with droid edit, copy all content and pasted into new xml file, but it didn't work, too. Any idea? What's version you using?
[Android Software Development] lukes91:
Which is yours? As soon as i get home in late afternoon i'll try to import those profiles...

Edit: can you import one of the profiles i posted following my guide? Just to know if that works :)

Sent from here
[Android Software Development] oldman20:
I tried xml inside autovoice.zip which your attached, same results, I cant see any xml to import. My tasker is 4.5
[Android Software Development] lukes91:
I'll try later at home...

Sent from here
[Android Software Development] lukes91:
Do this:

To import a profile open tasker, longpress profile tab name (in top left corner), click import and then browse to files to import

To import a task open tasker, longpress task tab name (in top left corner,just right to profile), click import and then browse to files to import

Let me know :)

Sent from here
[Android Software Development] 78Staff:
I'm using 4.5u1
[Android Software Development] oldman20:
Yeah, I can do that way. Thanks you so so much[emoji7]. You're best!

---------- Post added at 08:39 AM ---------- Previous post was at 08:35 AM ----------

But airplane mode still didn't work automatically :(
[Android Software Development] lukes91:
Have you installed secure settings? Did you give the correct permissions to everyone?
[Android Software Development] oldman20:
Yes, of course. It will work by hand, not by schedule [emoji20]

Wait, what's correct permission?
[Android Software Development] lukes91:
I meant providing superuser when asked :)

Anyway it's very weird, i tried and it worked...

Sent from here
[Android Software Development] 78Staff:
Ok, forgive the obvious questions, but we are running out of options.

1. Are you certain the profile is enabled?.

2. Try allowing Tasker "External Access" in your Tasker's settings - it's under Settings > Misc.

3. Enable Tasker in your ROM Settings Accessibility section - I don't think this should be an issue, but we are in the straw-grasping phrase :(.

4. Worst case, completely uninstall Tasker and install fresh version from Play Store, and recreate the profile/task...
[Android Software Development] oldman20:
Yep, of course. I did

1. Im sure, like this but when time set is come

But it work when I press play button

Even I allowing Tasker "External Access" in my Tasker's settings

---------- Post added at 04:01 PM ---------- Previous post was at 03:46 PM ----------

But wait.... It's work!! Yeah, I mean it auto turn on airplane mode when timer run, after turn on "allow extended access" Thanks your help. But I have a trouble: I tried set Airplane mode is "Toggle", but it only switch from "on" to "off", can't reverse

I think it can, right?
[Android Software Development] lukes91:
It should, i think it worked for me... Let me try and report...

Just tried, works like a charm... Delete profile and try to set it up again :)

Sent from here
[Android Software Development] oldman20:
I found right method make it to work!

But Tasker always perform exit task delay with timer. Ex: in above picture, task "Turn off airplane mode" will perform when 05:01, not 05:00
[Android Software Development] lukes91:
I'll try to create a toggle profile for you as soon as possibile, so you can import it and test... It works for me, i don't see why it shouldn't for you...

edit: try attached file, it toggles airplane on/off everytime you unlock display... i think that it's better to use a toggle with an event trigger, not a state trigger... just my opinion :)

Sent from here
[Android Software Development] claudchan:
Hi, I have autovoice installed but not list in the google search api plugin. Does I miss out something? Anyone can giv me a guide? thanks
[Android Software Development] lukes91:
well, the guide is the whole OP ;)
[Android Software Development] lukes91:
Have you solved?

[MENTION=5675996]oldman20[/MENTION] does my test profile work for you? :)

Sent from here
[Android Software Development] oldman20:
Yep, it worked on my phone! Btw, i found why it doesnt work on my phone. Thanks you [emoji16]
[Android Software Development] puredp1:
wrong me sorry

Thanx

---------- Post added at 12:47 PM ---------- Previous post was at 12:45 PM ----------

Hi. Does any one know if this work with lollipop?
[Android Software Development] lukes91:
Hi! Never tried, but if you feel you can try and report :good: always backup before...

Anyway, Lollipop is a very big update and changes a lot of things... Maybe some hooks used in xposed are not available yet or maybe Google now integration is broken... I really don't know as i didn't try, moreover i gave my test phone to my girlfriend so i cannot test in the following days... When i will have my hox back i will try and report results, but i think that it won't work...
[Android Software Development] puredp1:
Hi. Thanx for your reply. I am on leedroid rom with lollipop and have also xposed for lollipop working. I will give it a try and report. Thanx for sharing!
[Android Software Development] lukes91:
Thank you for testing... If this works please give me the details of your current configuration, i'll add it to the credits in the op, if you agree...
[Android Software Development] puredp1:
Hi again. Sorry for my English cause is not my language. I will give it a try later. No sure I understood to give me credits if I agree for what but do as you please. I am not a developer. I am on htc one m8 and I will report later I hope. Hope it works cause I tried the google search api module before 3 days but it didn't seem to recognize auto voice and show it.
[Android Software Development] lukes91:
Simply mentioning you in the op giving a thanks for testing and reporting :) take your time, no hurry :)
[Android Software Development] puredp1:
Ok now I got it. Thanx :). The main thing is to see if it works and let you and others here to know. Hope it does!
[Android Software Development] puredp1:
Ok I just tried google search api from xposed framework but when I open it and tick the 2 options you say after at the next tab it doesn't show my auto voice plugin. It starts like going to load but it does not.
[Android Software Development] lukes91:
Well, maybe something has changed... Unfortunately i can't test the setup right now, i hope i have time when my phone will be back...