• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

autovoice and tasker

galaxyjim

Newbie
Looking for a way to have Autovoice load any app I say without having to create a task for each and every app that I have maybe a variable not sure if it's right but I have a shell script open %application any ideas how I can do this using tasker:confused:
 
Please post the shell script you are talking about


<TaskerData sr="" dvi="1" tv="4.2b5m">
<Profile sr="prof102" ve="2">
<cdate>1377895977104</cdate>
<clp>true</clp>
<edate>1377897018120</edate>
<id>102</id>
<mid0>103</mid0>
<nme>Open Apps</nme>
<State sr="con0">
<code>20126</code>
<Bundle sr="arg0">
<Vals sr="val">
<DisableCommand><null></DisableCommand>
<DisableCommand-type>java.lang.String</DisableCommand-type>
<DisableCommandExact>false</DisableCommandExact>
<DisableCommandExact-type>java.lang.Boolean</DisableCommandExact-type>
<DisableCommandRegex>false</DisableCommandRegex>
<DisableCommandRegex-type>java.lang.Boolean</DisableCommandRegex-type>
<LastCommandIdInvert>false</LastCommandIdInvert>
<LastCommandIdInvert-type>java.lang.Boolean</LastCommandIdInvert-type>
<LastCommandIdRegex>false</LastCommandIdRegex>
<LastCommandIdRegex-type>java.lang.Boolean</LastCommandIdRegex-type>
<NotOnContinuous>false</NotOnContinuous>
<NotOnContinuous-type>java.lang.Boolean</NotOnContinuous-type>
<NotOnNormal>false</NotOnNormal>
<NotOnNormal-type>java.lang.Boolean</NotOnNormal-type>
<Precision><null></Precision>
<Precision-type>java.lang.String</Precision-type>
<TriggerWord><null></TriggerWord>
<TriggerWord-type>java.lang.String</TriggerWord-type>
<TriggerWordExact>false</TriggerWordExact>
<TriggerWordExact-type>java.lang.Boolean</TriggerWordExact-type>
<TriggerWordRegex>false</TriggerWordRegex>
<TriggerWordRegex-type>java.lang.Boolean</TriggerWordRegex-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Event Behaviour: true
Exit command: "all"
Command: "(open|start) = (regex)"
Trigger Word: "all"</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<configcommand>(Open|start) =</configcommand>
<configcommand-type>java.lang.String</configcommand-type>
<configcommandid><null></configcommandid>
<configcommandid-type>java.lang.String</configcommandid-type>
<configcommandinvert>false</configcommandinvert>
<configcommandinvert-type>java.lang.Boolean</configcommandinvert-type>
<configexactsub>false</configexactsub>
<configexactsub-type>java.lang.Boolean</configexactsub-type>
<configinstant>true</configinstant>
<configinstant-type>java.lang.Boolean</configinstant-type>
<configlastcommand><null></configlastcommand>
<configlastcommand-type>java.lang.String</configlastcommand-type>
<configregexsub>true</configregexsub>
<configregexsub-type>java.lang.Boolean</configregexsub-type>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES><StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4>%avcommsnofilter()
All recognized commands without filter
</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3>%avcomms()
All recognized commands
</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%avcommnofilter
First Command Without Filter
</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2>%avcomm
First recognized Command
</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1>%avword()
Word Array
</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1></StringArray></net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>plugininstanceid plugintypeid configcommand configcommandid configlastcommand Precision DisableCommand TriggerWord </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-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>
<plugininstanceid>54714fb2-b8c7-4fd5-a0d2-d34e04b2b83d</plugininstanceid>
<plugininstanceid-type>java.lang.String</plugininstanceid-type>
<plugintypeid>com.joaomgcd.autovoice.intent.IntentReceiveVoice</plugintypeid>
<plugintypeid-type>java.lang.String</plugintypeid-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.joaomgcd.autovoice</Str>
<Str sr="arg2" ve="3">AutoVoice Recognized</Str>
</State>
</Profile>
<Task sr="task103">
<cdate>1377896051078</cdate>
<edate>1377897018120</edate>
<id>103</id>
<Action sr="act0" ve="3">
<code>37</code>
<lhs>%avcommnofilter</lhs>
<op>1</op>
<rhs>R youTube</rhs>
</Action>
<Action sr="act1" ve="3">
<code>20</code>
<App sr="arg0">
<appClass>com.google.android.youtube.app.honeycomb.Shell$HomeActivity</appClass>
<appPkg>com.google.android.youtube</appPkg>
<label>YouTube</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act2" ve="3">
<code>43</code>
<lhs>%avcommnofilter</lhs>
<op>1</op>
<rhs>R gmail</rhs>
</Action>
<Action sr="act3" ve="3">
<code>20</code>
<App sr="arg0">
<appClass>com.google.android.gm.ConversationListActivityGmail</appClass>
<appPkg>com.google.android.gm</appPkg>
<label>Gmail</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act4" ve="3">
<code>43</code>
</Action>
<Action sr="act5" ve="3">
<code>559</code>
<Str sr="arg0" ve="3">Sorry. I can't understand you, please speak again</Str>
<Str sr="arg1" ve="3">default:default</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="0"/>
</Action>
</Task>
</TaskerData>
It's this what you needed? Or autovoice rec
Filter (open|start)(?<application>.+)
Tasker shell open%application
 
That is the XML of the profile. Export the description instead, it is much easier to read. Or even just the shell script that you found/wrote.

I've been wanting to do this for some time but could never reliably launch whatever app. Could get the package name, but never launch it.

EDIT

Looks like Joao made another plugin just a few hours ago, AutoApps. Which just so happens to do this exactly! Awesome!

https://plus.google.com/communities/110193399489813640793
 
Go watch TaskerbTutorials on youtube. Armando has a couple of episodes that deal with this. youtube.com/watch?v=r_9-TYIt1JQ&feature=plpp Sorry it's not a link. I can't post those as a newbie.
 
AutoApps (AutoLaunch now I think) works great for this. Just set your AV command to the following with regex turned on:

(?<null>open|launch|load) (?<app>.+)

Then you just need one action. Plugins>AutoApps, and set it to open %app
 
Any help in finding the beta for Auto Launch, I'm registered on the site but don't seem to be able to get to auto app/ launch.
 
Back
Top Bottom