<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://jitterjames.net/voxcommandoWiki/index.php?action=history&amp;feed=atom&amp;title=Using_Tasker_with_VoxCommando</id>
	<title>Using Tasker with VoxCommando - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://jitterjames.net/voxcommandoWiki/index.php?action=history&amp;feed=atom&amp;title=Using_Tasker_with_VoxCommando"/>
	<link rel="alternate" type="text/html" href="https://jitterjames.net/voxcommandoWiki/index.php?title=Using_Tasker_with_VoxCommando&amp;action=history"/>
	<updated>2026-10-16T08:51:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://jitterjames.net/voxcommandoWiki/index.php?title=Using_Tasker_with_VoxCommando&amp;diff=269&amp;oldid=prev</id>
		<title>James: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://jitterjames.net/voxcommandoWiki/index.php?title=Using_Tasker_with_VoxCommando&amp;diff=269&amp;oldid=prev"/>
		<updated>2021-01-13T17:25:02Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:25, 13 January 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>James</name></author>
		
	</entry>
	<entry>
		<id>https://jitterjames.net/voxcommandoWiki/index.php?title=Using_Tasker_with_VoxCommando&amp;diff=268&amp;oldid=prev</id>
		<title>Jitterjames at 15:59, 28 February 2017</title>
		<link rel="alternate" type="text/html" href="https://jitterjames.net/voxcommandoWiki/index.php?title=Using_Tasker_with_VoxCommando&amp;diff=268&amp;oldid=prev"/>
		<updated>2017-02-28T15:59:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you have an Android device, you can use Tasker to send data from your mobile world to VoxCommando. &lt;br /&gt;
&lt;br /&gt;
You can also easily send notifications from VoxCommando to Autoremote for Tasker.&lt;br /&gt;
&lt;br /&gt;
This means that you can do things like generating VC events or TTS announcements based on activity that has occurred on your Android. You can even directly execute specific commands in VoxCommando (using [[Actions#TellVox|VC.TellVox]]). &lt;br /&gt;
&lt;br /&gt;
It's beyond scope for us to teach you how to use &amp;lt;html&amp;gt;&amp;lt;a href=&amp;quot;http://tasker.dinglisch.net/&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Tasker&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt; generally. The documentation below provides guidance on ways to communicate between Tasker and VC specifically.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Note: Most users should not need to use Tasker/AutoVoice just to use an Android as a VC microphone. If you think Google Now is working better than VoxWav, it's most likely because you have not set up VoxWav correctly or you're trying to talk into the mic with the phone an inch from your face. &lt;br /&gt;
&lt;br /&gt;
When set up properly, the accuracy of VoxWav is superior to Google Now because you will be taking advantage of VC's controlled grammar. VoxWav also has other useful features such as the ability to send touch commands. VoxWav has a customizable tilt on/off feature that can be run in the background, and should not interfere with your general phone usage if properly configured. Unlike Google Now, it does not require Internet access.&lt;br /&gt;
&lt;br /&gt;
That said, you may still decide that you want to use Tasker/AutoVoice for other reasons.  Maybe you are already using AutoVoice or maybe you want to control VoxCommando when you are not connected to the same LAN as VoxCommando.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe width=&amp;quot;420&amp;quot; height=&amp;quot;315&amp;quot; src=&amp;quot;https://www.youtube.com/embed/Vu2FTNgMYQU&amp;quot; align=&amp;quot;right&amp;quot; frameborder=&amp;quot;0&amp;quot; allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Send Messages from VC to Autoremote=&lt;br /&gt;
Follow the [https://joaoapps.com/autoremote/direct/ Autoremote tutorial] on how to send messages to Autoremote.&lt;br /&gt;
&lt;br /&gt;
In VC, we always use the [[Actions#Scrape|Scrape actions]] to send HTTP requests.&lt;br /&gt;
&lt;br /&gt;
See the forum for a [http://voxcommando.com/forum/index.php?topic=2521.msg22186#msg22186 command example] that works with [http://autoremotejoaomgcd.appspot.com/| Autoremote].&lt;br /&gt;
&lt;br /&gt;
=Tasker and AutoVoice as an Alternative to VoxWav=&lt;br /&gt;
&lt;br /&gt;
On your Android device, do the following.&lt;br /&gt;
&lt;br /&gt;
* Install Tasker.&lt;br /&gt;
* Install AutoVoice.&lt;br /&gt;
* Install UDP Sender.&lt;br /&gt;
&lt;br /&gt;
==Create a State Profile in Tasker==&lt;br /&gt;
* Open Tasker.&lt;br /&gt;
* Go to '''Profiles''' -&amp;gt; Create a new Profile by clicking '''+'''.&lt;br /&gt;
* Choose '''State''' -&amp;gt; Select State category '''Plugin'''.&lt;br /&gt;
* Choose '''AutoVoice''' -&amp;gt; '''Recognized'''.&lt;br /&gt;
* Click '''Configuration''' (pencil).&lt;br /&gt;
* Click the checkmark (✔).&lt;br /&gt;
* Then go back to '''State Edit''' (top left).&lt;br /&gt;
&lt;br /&gt;
==Create a Task==&lt;br /&gt;
===Simple Version (try this first)===&lt;br /&gt;
* Click + to add a new task.&lt;br /&gt;
* Give your task a name.&lt;br /&gt;
* Click + to add an action to your task.&lt;br /&gt;
* Select '''Plugin''' -&amp;gt; UDP Sender.&lt;br /&gt;
* Click '''Configuration'''.&lt;br /&gt;
** For Destination IP, either enter '''255.255.255.255''' or specify the IP for the machine running VoxCommando.&lt;br /&gt;
** For Port, enter '''33000'''.&lt;br /&gt;
** For Text field, enter '''vc.tellvox&amp;amp;&amp;amp;%avcommnofilter''' .&lt;br /&gt;
** Click the checkmark (✔).&lt;br /&gt;
&lt;br /&gt;
===Advanced Version (more complicated, more likely to get a match)===&lt;br /&gt;
* Click + to add a new task.&lt;br /&gt;
* Give your task a name.&lt;br /&gt;
* Click + to add an action to your task.&lt;br /&gt;
* Click '''Variables''' -&amp;gt; Variables Set.&lt;br /&gt;
** Under '''Name''', enter '''%vcmsg'''&lt;br /&gt;
** Under '''To''', enter '''%avcommsnofilter()'''&lt;br /&gt;
* Go back to Task Edit.&lt;br /&gt;
* Click + to add another action to your task.&lt;br /&gt;
* Click '''Variables''' -&amp;gt; Variable Search Replace.&lt;br /&gt;
** Under '''Variable''', enter '''%vcmsg'''&lt;br /&gt;
** Under '''Search''', enter ''',''' (a comma)&lt;br /&gt;
** Click the checkmark (✔) next to &amp;quot;Replace Matches&amp;quot;.&lt;br /&gt;
** In the '''Replace With''' field that appears, enter '''&amp;amp;&amp;amp;'''&lt;br /&gt;
* Go back.&lt;br /&gt;
* Click + to add an action to your task.&lt;br /&gt;
* Select '''Plugin''' -&amp;gt; UDP Sender.&lt;br /&gt;
* Click '''Configuration'''.&lt;br /&gt;
** For Destination IP, either enter 255.255.255.255 or specify the IP for the machine running VoxCommando.&lt;br /&gt;
** For Port, enter 33000.&lt;br /&gt;
** For Text field, enter '''android.phrases&amp;amp;&amp;amp;%vcmsg''' .&lt;br /&gt;
** Click the checkmark (✔).&lt;br /&gt;
&lt;br /&gt;
==AutoVoice==&lt;br /&gt;
&lt;br /&gt;
* Go back until you're out of Tasker.&lt;br /&gt;
&lt;br /&gt;
*Launch AutoVoice.&lt;br /&gt;
*Turn continuous mode on.&lt;br /&gt;
&lt;br /&gt;
Make sure VoxCommando is running. Start issuing voice commands!&lt;br /&gt;
&lt;br /&gt;
==Allowing External Access==&lt;br /&gt;
We have not determined whether this is necessary, but you may also want to:&lt;br /&gt;
*Open Tasker.&lt;br /&gt;
*Click Settings button on top-right corner.&lt;br /&gt;
*Choose &amp;quot;Preferences&amp;quot;.&lt;br /&gt;
*On Misc tab, check &amp;quot;Allow External Access&amp;quot;. (Depending on which version of Tasker you're using you may need to un-check &amp;quot;Beginner Mode&amp;quot; in the UI tab in order to access this setting.)&lt;br /&gt;
&lt;br /&gt;
=Other Methods to Send Notifications/Data from Tasker to VC=&lt;br /&gt;
&lt;br /&gt;
==In VoxCommando==&lt;br /&gt;
&lt;br /&gt;
Enable the TCP plugin (if you haven't yet).&lt;br /&gt;
* In the TCP plugin settings, enable the Simple Web Server. You can change the default port if that port is already being used by another application.&lt;br /&gt;
* Save your settings. If you want to test the web server you've just created, click &amp;quot;Launch in Browser&amp;quot;.&lt;br /&gt;
* You will be sending HTTP get requests from Tasker to this web server.&lt;br /&gt;
&lt;br /&gt;
==In Tasker==&lt;br /&gt;
&lt;br /&gt;
It's up to you what kind of Android event you'll be using as a trigger (receiving a text message or email, a new notification of some kind, etc.). &lt;br /&gt;
&lt;br /&gt;
What we care about here is the &amp;quot;Task&amp;quot; that you will be triggering within Tasker.&lt;br /&gt;
&lt;br /&gt;
If you're more comfortable with IFTTT terminology: what we care about here is the ''That'' (i.e. the task). The Tasker &amp;quot;Profile&amp;quot; is the ''This''. We leave the ''This'' to you to figure out.&lt;br /&gt;
&lt;br /&gt;
===Example: Generating an Event in VoxCommando===&lt;br /&gt;
&lt;br /&gt;
*Create a new &amp;quot;Task&amp;quot; in Tasker. Call it what you like. (e.g. &amp;quot;Send event to VC&amp;quot;)&lt;br /&gt;
*Add a new &amp;quot;Action&amp;quot; to your Task.&lt;br /&gt;
*From the &amp;quot;Select Action Category&amp;quot; menu, click on &amp;quot;Net&amp;quot;.&lt;br /&gt;
*Choose &amp;quot;HTTP Get&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Editing your HTTP Get Action in Tasker===&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Server:Port&amp;quot; enter the IP and port number for your VC computer that is running the web server, e.g. 192.168.0.1:8080 (Do *not* try to use 127.0.0.1, which simply means &amp;quot;localhost&amp;quot; in computerese. You need to know the correct IP address for your VC machine.)&lt;br /&gt;
* In &amp;quot;Path&amp;quot;, enter &lt;br /&gt;
&amp;lt;pre&amp;gt;/api/vc.triggerevent&amp;amp;&amp;amp;eventnameofyourchoosing&amp;amp;&amp;amp;optionalpayload&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Et voilà. That's all you need to do in order to generate a custom event in VC. If you don't need to pass a payload, stop at the event name. &lt;br /&gt;
&lt;br /&gt;
If you prefer a specific example: &lt;br /&gt;
&amp;lt;pre&amp;gt;/api/vc.triggerevent&amp;amp;&amp;amp;incomingSMS&amp;amp;&amp;amp;%SMSRN&amp;amp;&amp;amp;%SMSRB&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:incomingmsg.png|right]]&lt;br /&gt;
&lt;br /&gt;
When triggered on your Android, the above example will generate an [[Customizing_Commands|event]] called &amp;quot;incomingSMS&amp;quot; in VC, which will show up in the history panel. It should include 2 payloads. (Caveat, these payload variables are untested: I'm  basing them on Tasker's documentation, which you can consult for yourself.):&lt;br /&gt;
#Name of sender (represented by the Tasker variable %SMSRN)&lt;br /&gt;
#Message (represented by the Tasker variable %SMSRB)&lt;br /&gt;
&lt;br /&gt;
As always, you can use this event to trigger any command in VC, and use the payloads in that command if desired.&lt;br /&gt;
&lt;br /&gt;
To learn more about the format for sending various types of messages to VoxCommando, see the [[API_Application_Programming_Interface|API]] page of the wiki. Generating events is just an example.&lt;br /&gt;
&lt;br /&gt;
=Alternatives to Tasker=&lt;br /&gt;
The custom [[VoxWav]] apps for Android have some features that may meet your needs, without dealing with Tasker. For example, VoxWav automatically generates an event in VoxCommando when you receive a phone call on your Android. At the same time, it should mute the VoxWav mic.&lt;br /&gt;
&lt;br /&gt;
The event will show up in the VC history panel as &amp;quot;Av.Ringing&amp;quot; and it includes as a payload the phone number that is calling. So, if you want to use that event to trigger a command that turns VC to off mode and displays the caller's phone number you could do something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-16&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!--VoxCommando 2.1.3.6--&amp;gt;&lt;br /&gt;
&amp;lt;command id=&amp;quot;303&amp;quot; name=&amp;quot;incoming call&amp;quot; enabled=&amp;quot;true&amp;quot; alwaysOn=&amp;quot;False&amp;quot; confirm=&amp;quot;False&amp;quot; requiredConfidence=&amp;quot;0&amp;quot; loop=&amp;quot;False&amp;quot; loopDelay=&amp;quot;0&amp;quot; loopMax=&amp;quot;0&amp;quot; description=&amp;quot;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;action&amp;gt;&lt;br /&gt;
    &amp;lt;cmdType&amp;gt;VC.Off&amp;lt;/cmdType&amp;gt;&lt;br /&gt;
    &amp;lt;params /&amp;gt;&lt;br /&gt;
    &amp;lt;cmdRepeat&amp;gt;1&amp;lt;/cmdRepeat&amp;gt;&lt;br /&gt;
  &amp;lt;/action&amp;gt;&lt;br /&gt;
  &amp;lt;action&amp;gt;&lt;br /&gt;
    &amp;lt;cmdType&amp;gt;OSD.ShowText&amp;lt;/cmdType&amp;gt;&lt;br /&gt;
    &amp;lt;params&amp;gt;&lt;br /&gt;
      &amp;lt;param&amp;gt;Incoming call from: {1}&amp;lt;/param&amp;gt;&lt;br /&gt;
    &amp;lt;/params&amp;gt;&lt;br /&gt;
    &amp;lt;cmdRepeat&amp;gt;1&amp;lt;/cmdRepeat&amp;gt;&lt;br /&gt;
  &amp;lt;/action&amp;gt;&lt;br /&gt;
  &amp;lt;event&amp;gt;Av.Ringing&amp;lt;/event&amp;gt;&lt;br /&gt;
&amp;lt;/command&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jitterjames</name></author>
		
	</entry>
</feed>