Author Topic: Using Tasker with VoxCommando  (Read 19417 times)

0 Members and 2 Guests are viewing this topic.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

shango

  • $upporter
  • Sr. Member
  • *****
  • Posts: 104
  • Karma: 0
  • No English flag :(
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #1 on: January 29, 2015, 12:53:37 PM »
is it possible to have tasker send basic media browse and control to vox? looking into a way of using google nows 'ok google' to send commands to control xbmc/mediaportal

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Using Tasker with VoxCommando
« Reply #2 on: January 29, 2015, 01:10:30 PM »
The above wiki page includes a link about Autovoice.

Seems like VoxWav Free or Pro would make more sense for that particular application unless there's a need for remote (WAN) communication.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

shango

  • $upporter
  • Sr. Member
  • *****
  • Posts: 104
  • Karma: 0
  • No English flag :(
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #3 on: January 29, 2015, 01:25:24 PM »
I have vox wav installed but it causes conflictions with microphone access with other apps I use, I use openmic+ for google now and if using voxwav it needs to have the mic always listening, of course both apps cannot have the mic always on. So im looking to be able to just use google now alone.

I have seen guides on how to use google now to trigger tasker commands using various apps, though it maybe a long winded way of doing things but it would allow only one app using the mic.

Just curious to know if it were possible before I delve into for hours only to find out it can't be done.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Using Tasker with VoxCommando
« Reply #4 on: January 29, 2015, 01:33:15 PM »
Autovoice = Google Now. I don't know about mic access issues with that.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

shango

  • $upporter
  • Sr. Member
  • *****
  • Posts: 104
  • Karma: 0
  • No English flag :(
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #5 on: January 30, 2015, 02:26:19 PM »
thanks, have managed to do what i wanted pretty much, not sure its the best way of going about it but am very new to tasker and autovoice so might be able to come up with a better solution.
so far im using autovoice integration with google now, set tasker to launch voxwav on "ok google, mediaportal" command then have it emulate a button push via co ordinates to activate vox recording.

not exactly what id like but getting there.

Ideally id like to eliminate voxwav and have tasker send commands directly to voxcommando

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Using Tasker with VoxCommando
« Reply #6 on: January 30, 2015, 03:32:01 PM »
instructions for doing exactly that are in the wiki. Follow the link in the first post of this thread. That Is exactly what this thread is about!

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #7 on: January 31, 2015, 01:53:54 AM »
Thanks for the wiki,

I started using tasker because of it, I use it for caller id to announce the name of the caller and have a popup with xbmc with the callers picture, name and number, and i have it change my lights colors when i have a missed call  ::wiggle

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Using Tasker with VoxCommando
« Reply #8 on: January 31, 2015, 08:22:25 AM »
 ::banana
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

shango

  • $upporter
  • Sr. Member
  • *****
  • Posts: 104
  • Karma: 0
  • No English flag :(
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #9 on: February 02, 2015, 05:11:41 PM »
Ok i got tasker communicating with vox and the sms example from the wiki works but im at a loss as to what the payload should be for other commands

Just trying something simple like browse tvshows but nothing ive tried works, shows up in orange in the history as an event triggered followed by whatever i've tried typing in the path.

/api/vc.triggerevent&&BrowseTVShows&&optionalpayload

if someone could advise what i should replace optional payload with that would be great.

Thanks

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Using Tasker with VoxCommando
« Reply #10 on: February 02, 2015, 05:31:55 PM »
Does your "Browse TV shows" command actually require any payloads?

If a command doesn't require payloads then just delete that part, as mentioned in the wiki.

In general: if you want to use Google Now, then you would be sending VC a voice command emulation presumably, with the full voice command phrase including the desired payload phrase, not trying to trigger an event with VC.TriggerEvent?

VC.TellVox is the most likely candidate for that purpose.

The wiki provides one possible example of how to use Tasker, but then refers people to the API page for more info on different messages you can send, and also links to the AutoVoice forum discussion for people who want do use that.

There is a special "trick" that is discussed in the forum thread about how to get AutoVoice to pass a series of Google Now speech phrases to Tasker (rather than just sending the "top hit" of all possible recognized phrases), and from Tasker on to VC.  James posts the xml for his Tasker task in that thread, and it shows the syntax that you need to use in Tasker in order to do that. Rather than using VC.TellVox, his xml shows how you can use a "hidden", not-really-for-public-consumption action called "android.phrases" to make the AutoVoice solution somewhat more reliable.
« Last Edit: February 02, 2015, 05:35:52 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

shango

  • $upporter
  • Sr. Member
  • *****
  • Posts: 104
  • Karma: 0
  • No English flag :(
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #11 on: February 02, 2015, 07:03:31 PM »
dont think it does use a payload but i also tried it without as it says in wiki but didnt work, i'll have a look at vc.tellvox though im starting to think this might be over my head, im new to tasker and I never really did fully get my head round vox even when I was using it before, not used it in over a year now so what i learned i've forgot.

thanks for the help


nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Using Tasker with VoxCommando
« Reply #12 on: February 02, 2015, 07:37:46 PM »
Yes, it may make sense to learn a bit more about how VC works, as I think that may be contributing a lot to the challenge you're facing.

Maybe watching a few of the "Core Concepts" video tutorials to refresh your memory would help. http://voxcommando.com/mediawiki/index.php?title=Video_Tutorials

dont think it does use a payload but i also tried it without as it says in wiki but didnt work,

Not sure what "didnt work" means in this case, but if you're meaning that a "BrowseTVShows" event shows up in VoxCommando's history panel, but that it doesn't cause your media player to Browse to TV shows the way that the voice command typically would, that would mean that the event wasn't able to trigger your Browse TV Shows command. If that's the case, it may mean:

1. That your Browse TV shows command doesn't have an event trigger associated with it at all yet (you'd have to add that to the command), or possibly that

2. The command *is* set up to be triggered by either a voice command or an event, but the event name for that trigger is not "BrowseTVShows", or possibly that

3. You added an event trigger "BrowseTVShows" to your Browse TV Shows command but hadn't yet saved and exited the command tree before testing it. VC needs to rebuild the edited command group before it will know that there's a newly created event trigger.
« Last Edit: February 02, 2015, 07:51:13 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

Oktane83

  • Jr. Member
  • **
  • Posts: 19
  • Karma: 4
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #13 on: February 14, 2015, 03:20:06 PM »
I use Tasker, Autovoice and UDP Sender to send commands via Google Now to Voxcommando.

Tasker: https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en
Autovoice: https://play.google.com/store/apps/details?id=com.joaomgcd.autovoice&hl=en
UDP Sender: https://play.google.com/store/apps/details?id=com.hastarin.android.udpsender&hl=en

Setup

Voxcommando: Ensure UDP listen port in Option > Advanced is set to 33000

Autovoice: Set Google Now Integration to Enabled. You may have to enable this first in your phone settings. (On Android Lolipop found at Settings > Accessibility > AutoVoice Google Now Integration set ON

Tasker: Go to Profiles and Click "+" to create a new profile. Then Select "Event", "Plugin", "Autovoice", "Recognized". Once there select Configuration and then Command Filter. Set your command filter to "%avcommsnofilter()", not including the quotations. Select OK and then click the Check Mark. Then select back to go to Event Edit.

You will then be asked to select an existing task or create a new one. We will select "New Task". You can name this task whatever you like. Then proceed by clicking the "+" the create a new task. From there select "Plugin", "UDP Sender" and then we will go to configuration. Set your destination IP to the machine where you have Voxcommando installed. Then set the port to "33000". Next we will go to the "Text" field and enter "vc.tellvox&& %avcommsnofilter()" no quotes. Also ensure you have a space between && and %.

You can now save that task and test it out. You can speak any command you have programmed into voxcommando. "Play" "Stop" "Play song whatever" "Play movie whatever".

Sometimes Google now will interpret me saying "Run KODI" as "Run Cody" so as a workaround I simply go to the command builder and add the word "Cody" to the phrases. I do this for any words that Google misinterprets.

Another thing you can do to get Google Now to work from any screen on your phone is go to Settings > Language and Input > Google Voice Typing > "OK Google Detection" and enable "From any Screen".

Hope this helps someone out there.

Cheers.

Dave

  • $upporter
  • Sr. Member
  • *****
  • Posts: 139
  • Karma: 31
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #14 on: February 14, 2015, 03:54:16 PM »
Thanks for the explanation! :clap

Did anyone already try this with an Android Wear smartwatch?
« Last Edit: February 14, 2015, 04:00:55 PM by Dave »

laestrella

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #15 on: March 09, 2015, 06:41:08 PM »
Thank you so much for this. Just tested it out and it works flawlessly from my Moto 360 using AutoWear!!!!


I use Tasker, Autovoice and UDP Sender to send commands via Google Now to Voxcommando.

Tasker: https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en
Autovoice: https://play.google.com/store/apps/details?id=com.joaomgcd.autovoice&hl=en
UDP Sender: https://play.google.com/store/apps/details?id=com.hastarin.android.udpsender&hl=en

Setup

Voxcommando: Ensure UDP listen port in Option > Advanced is set to 33000

Autovoice: Set Google Now Integration to Enabled. You may have to enable this first in your phone settings. (On Android Lolipop found at Settings > Accessibility > AutoVoice Google Now Integration set ON

Tasker: Go to Profiles and Click "+" to create a new profile. Then Select "Event", "Plugin", "Autovoice", "Recognized". Once there select Configuration and then Command Filter. Set your command filter to "%avcommsnofilter()", not including the quotations. Select OK and then click the Check Mark. Then select back to go to Event Edit.

You will then be asked to select an existing task or create a new one. We will select "New Task". You can name this task whatever you like. Then proceed by clicking the "+" the create a new task. From there select "Plugin", "UDP Sender" and then we will go to configuration. Set your destination IP to the machine where you have Voxcommando installed. Then set the port to "33000". Next we will go to the "Text" field and enter "vc.tellvox&& %avcommsnofilter()" no quotes. Also ensure you have a space between && and %.

You can now save that task and test it out. You can speak any command you have programmed into voxcommando. "Play" "Stop" "Play song whatever" "Play movie whatever".

Sometimes Google now will interpret me saying "Run KODI" as "Run Cody" so as a workaround I simply go to the command builder and add the word "Cody" to the phrases. I do this for any words that Google misinterprets.

Another thing you can do to get Google Now to work from any screen on your phone is go to Settings > Language and Input > Google Voice Typing > "OK Google Detection" and enable "From any Screen".

Hope this helps someone out there.

Cheers.

RickyD333

  • Contributor
  • ***
  • Posts: 71
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #16 on: March 28, 2015, 02:28:24 PM »
I use Tasker, Autovoice and UDP Sender to send commands via Google Now to Voxcommando.

Tasker: https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en
Autovoice: https://play.google.com/store/apps/details?id=com.joaomgcd.autovoice&hl=en
UDP Sender: https://play.google.com/store/apps/details?id=com.hastarin.android.udpsender&hl=en

Setup

Voxcommando: Ensure UDP listen port in Option > Advanced is set to 33000

Autovoice: Set Google Now Integration to Enabled. You may have to enable this first in your phone settings. (On Android Lolipop found at Settings > Accessibility > AutoVoice Google Now Integration set ON

Tasker: Go to Profiles and Click "+" to create a new profile. Then Select "Event", "Plugin", "Autovoice", "Recognized". Once there select Configuration and then Command Filter. Set your command filter to "%avcommsnofilter()", not including the quotations. Select OK and then click the Check Mark. Then select back to go to Event Edit.

You will then be asked to select an existing task or create a new one. We will select "New Task". You can name this task whatever you like. Then proceed by clicking the "+" the create a new task. From there select "Plugin", "UDP Sender" and then we will go to configuration. Set your destination IP to the machine where you have Voxcommando installed. Then set the port to "33000". Next we will go to the "Text" field and enter "vc.tellvox&& %avcommsnofilter()" no quotes. Also ensure you have a space between && and %.

You can now save that task and test it out. You can speak any command you have programmed into voxcommando. "Play" "Stop" "Play song whatever" "Play movie whatever".

Sometimes Google now will interpret me saying "Run KODI" as "Run Cody" so as a workaround I simply go to the command builder and add the word "Cody" to the phrases. I do this for any words that Google misinterprets.

Another thing you can do to get Google Now to work from any screen on your phone is go to Settings > Language and Input > Google Voice Typing > "OK Google Detection" and enable "From any Screen".

Hope this helps someone out there.

Cheers.

Hey everyone, I am very new to VoxCommando. Just installed it yesterday. I did this whole process to the letter, but it's not completely working for me. I tap on my AutoVoice Recognize button on my phone to say my command, then I see VoxCommando on my desktop pc hear the command (it says "emulate: open gmail... open gmail is the command I want to execute), but it stops there. It doesn't open my gmail in my default browser, which is the one command that I have set up so far (except for the kodi plugin stuff I installed). I've tested it with VoxWav several times and it works. I'm not sure what I'm missing here.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Using Tasker with VoxCommando
« Reply #17 on: March 28, 2015, 02:53:33 PM »
Hi RickyD333,

Sounds like you are pretty close if VoxCommando is showing something in the history window.

Please enable logging in VoxCommando, then repeat the process with Autovoice and Tasker, and then upload your complete log as an attachment.

http://voxcommando.com/mediawiki/index.php?title=Log

As a side note, depending on your needs, you may find VoxWav an easier and better solution.

RickyD333

  • Contributor
  • ***
  • Posts: 71
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #18 on: March 28, 2015, 03:35:28 PM »
Thanks for the speedy reply jitterjames!

I got the attachment on here. If it didn't attach, let me know.

Like a lot of people I'm using VC to help automate my home. I started out using Tasker a while ago before I discovered VC. Had I learned about this sooner, I may have completely disregarded Tasker. This being the reason why I don't use VoxWav. However, I may end up making VC the primary tool/host for my home automation. The reason being that the microphone I wanted to install (Acoustic Magic Array I Microphone) throughout my house so I may be anywhere and give a command (I'm essentially trying to emulate the Star Trek computer/JARVIS), doesn't appear to support Android. Which is what I would need it to do if I am to use Tasker. I am assuming the communication between Tasker and VC can go both ways, so any function having to do with my Android phone will be activated through VC first (such as answering calls/receiving and sending text messages).

It's funny, I initially wanted VC so I can control my PC and XBMC/kodi. Looks like it may go further...

P.S. Are you the guy who did the VoxCommando Fireside Chat YouTube videos?
« Last Edit: March 28, 2015, 03:43:11 PM by RickyD333 »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Using Tasker with VoxCommando
« Reply #19 on: March 28, 2015, 03:47:11 PM »
are you sure you are using:
Code: [Select]
vc.tellvox&& %avcommsnofilter()
I haven't tried to follow this tutorial myself but others seem to think it works...  I don't know for sure but I think %avcommsnofilter() should be giving the most likely phrase only.

In the VC log it shows that it is sending all possible phrases that Google could guess (separated by commas), not just the most likely one.

So it is trying to emulate the phrase "open gmail,hoping gmail,open gmail,hope in gmail,hopen gmail" which does not match the phrase "open gmail"

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Using Tasker with VoxCommando
« Reply #20 on: March 28, 2015, 03:47:55 PM »
P.S. Are you the guy who did the VoxCommando Fireside Chat YouTube videos?
That's us!  8)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Using Tasker with VoxCommando
« Reply #21 on: March 28, 2015, 04:00:13 PM »
are you sure you are using:
Code: [Select]
vc.tellvox&& %avcommsnofilter()

We're not exactly the Tasker experts around here, but James, I think that %avcomm is the variable that only returns the first match. %avcomms returns a comma-separated list of matches. ... not sure what the "no filter" adds to the equation.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

RickyD333

  • Contributor
  • ***
  • Posts: 71
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #22 on: March 28, 2015, 04:05:09 PM »
Yeah, it looks like I have that written out all correct. I'm attaching a screenshot of it.

And I loved those YouTube videos! I'm very much a visual learner, and the way those videos are done was perfect for me! You two are awesome!

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Using Tasker with VoxCommando
« Reply #23 on: March 28, 2015, 04:10:41 PM »

Tasker: Go to Profiles and Click "+" to create a new profile. Then Select "Event", "Plugin", "Autovoice", "Recognized". Once there select Configuration and then Command Filter. Set your command filter to "%avcommsnofilter()", not including the quotations. Select OK and then click the Check Mark. Then select back to go to Event Edit.

You will then be asked to select an existing task or create a new one. We will select "New Task". You can name this task whatever you like. Then proceed by clicking the "+" the create a new task. From there select "Plugin", "UDP Sender" and then we will go to configuration. Set your destination IP to the machine where you have Voxcommando installed. Then set the port to "33000". Next we will go to the "Text" field and enter "vc.tellvox&& %avcommsnofilter()" no quotes. Also ensure you have a space between && and %.



I think these instructions are actually either incorrect or incomplete.  I think this is wrong:
Code: [Select]
vc.tellvox&& %avcommsnofilter()
It should probably be
Code: [Select]
vc.tellvox&& %avcommnofilter
Variables are explained here: http://joaoapps.com/variables/

Quote
AutoVoice
AutoVoice Recognized condition

%avcomms(): array with all the possible recognized voice commands
%avcommsnofilter(): array with all the possible recognized voice commands but without the command filter you set in the profile
%avcomm: first possible voice command that was recognized
%acommnofilter: first possible voice command but without the command filter you set in the profile
%avsource: Source of the voice command. Can be ‘normal’, ‘continuous’, ‘test’ or ‘googlenow’
%avword(): array with all the words of the first command that was recognized
« Last Edit: March 28, 2015, 04:14:49 PM by nime5ter »

RickyD333

  • Contributor
  • ***
  • Posts: 71
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #24 on: March 28, 2015, 04:21:22 PM »
Well I tried that and it still didn't work. In the little filter bar in the top of VC I get "emulate: ?ommnofilter"

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Using Tasker with VoxCommando
« Reply #25 on: March 28, 2015, 04:30:56 PM »
I think you are doing something wrong in Tasker.  Without seeing it I can't tell what.

Can you please post a screen shot of the tasker setting?

RickyD333

  • Contributor
  • ***
  • Posts: 71
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #26 on: March 28, 2015, 04:43:49 PM »
I fixed it! It's so stupid too.  :bonk

In the AutoVoice section the Regex has to be selected.

RickyD333

  • Contributor
  • ***
  • Posts: 71
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #27 on: March 28, 2015, 04:48:41 PM »
Wait... what the heck?

It worked once... now it won't... I'm going to keep tinkering...
« Last Edit: March 28, 2015, 04:59:33 PM by RickyD333 »

RickyD333

  • Contributor
  • ***
  • Posts: 71
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #28 on: March 28, 2015, 04:59:07 PM »
Here are some screenshots by the way.

RickyD333

  • Contributor
  • ***
  • Posts: 71
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #29 on: March 28, 2015, 05:13:19 PM »
Okay, so I keep trying things out and I got it to work again. However when I try to repeat it, it won't work. It seems like it is sort of random. I'm attaching two screenshots of my desktop that is running VC. One is labeled as using VoxWav, which works every time. The second image is labeled as using AutoVoice (and it is a shot of it matching the command, but not fulfilling it). I took these screenshots because that filter bar (is there a name for it?) at the top of the VC window looks different when it succeeds with VoxWav and when it does not complete the command with AutoVoice. I don't know if it means anything... but here it is.
« Last Edit: March 28, 2015, 05:25:31 PM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Using Tasker with VoxCommando
« Reply #30 on: March 28, 2015, 05:30:53 PM »
The problem is that you are still using avcommsnofilter() which is not the correct variable to use.  The original instructions posted by Octane are wrong as far as I can tell.  I'm not sure why others said "it works great thanks" because I don't see how it's possible that these instructions could work for anyone.

as I said a couple posts up, avcommsnofilter() is wrong.

I believe you should be using avcommnofilter

There is not supposed to be an 'S'.  I think there is also not supposed to be () at the end.

The way VoxWav works is completely different from how Autovoice/Tasker works so there is no point in comparing them.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Using Tasker with VoxCommando
« Reply #31 on: March 28, 2015, 05:57:56 PM »
I fixed it! It's so stupid too.  :bonk

In the AutoVoice section the Regex has to be selected.

That doesn't sound right.

I don't think you are supposed to put anything into the filter field though, unless you want to use a prefix like "jarvis".  I'm pretty sure the instructions to put %avcommsnofilter() into the filter is completely wrong.  Once I can completely verify how this is supposed to work I think I will remove Oktanes guidelines because I think they are leading people astray.  I have some more testing to do first.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Using Tasker with VoxCommando
« Reply #32 on: March 29, 2015, 05:11:26 PM »
I'm pretty sure the instructions to put %avcommsnofilter() into the filter is completely wrong.  Once I can completely verify how this is supposed to work I think I will remove Oktanes guidelines because I think they are leading people astray.  I have some more testing to do first.

After some testing, we've added step-by-step instructions on using Tasker + Autovoice + UDP sender to the wiki. Sorry, no screen captures or videos at this point. Words will have to do for now.

There's now also a video tutorial embedded with the instructions.

http://voxcommando.com/mediawiki/index.php?title=Using_Tasker_with_VoxCommando#Tasker_and_AutoVoice_as_an_Alternative_to_VoxWav
« Last Edit: March 30, 2015, 02:08:40 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

RickyD333

  • Contributor
  • ***
  • Posts: 71
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #33 on: March 29, 2015, 07:52:31 PM »
After some testing, we've added step-by-step instructions on using Tasker + Autovoice + UDP sender to the wiki. Sorry, no screen captures or videos at this point. Words will have to do for now.

http://voxcommando.com/mediawiki/index.php?title=Using_Tasker_with_VoxCommando#Tasker_and_AutoVoice_as_an_Alternative_to_VoxWav

That did it! So it was the text field in the UDP Sender that was in fact incorrect. There shouldn't be a space and there should be no "s" or "()", as well as no command filter in the AutoVoice Recognize preferences.

However, the "Advanced" version didn't work for me. Same problem I was having before.

P.S. Can I get this to work in the reverse? Such as saying a command into VoxCommando (perhaps with VoxWav) and having an action take place in Tasker?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Using Tasker with VoxCommando
« Reply #34 on: March 29, 2015, 09:44:33 PM »

However, the "Advanced" version didn't work for me. Same problem I was having before.

This method is tested  and we have verified that it works just fine so you must have missed a step or you made a typographical error. You must follow every step exactly or it will not work. No fuzzy logic here!

If you are going to use Tasker the advanced method is recommended since you will be more likely to get a successful recognition.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Using Tasker with VoxCommando
« Reply #35 on: March 29, 2015, 09:51:36 PM »
P.S. Can I get this to work in the reverse? Such as saying a command into VoxCommando (perhaps with VoxWav) and having an action take place in Tasker?

Other users have used the Autoremote Android app to send messages from VC to Tasker using a Scrape action (e.g, so that TTS feedback from VC is delivered to their phones).

You'd have to look up Autoremote to find its documentation.

http://voxcommando.com/forum/index.php?topic=1911.msg16486#msg16486

http://voxcommando.com/mediawiki/index.php?title=Actions#Scrape
« Last Edit: March 29, 2015, 10:02:00 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #36 on: April 09, 2015, 02:30:01 AM »
I've been making some Task with tasker to work with VC and I found away to launch VoxWav by using the swipe up gesture for google now (you might have to hold the home button instead of swiping up depending on the device)

this will not open the mic but will launch the VoxWav app,

  • create a new profile
  • Select Event
  • Select Assistance Request
  • Select Tasker Back Button

  • Select New Task
  • Name it what you want
  • select app
  • select launch app
  • select app
  • select VoxWav
  • select tasker back
  • select tasker back Again

that should give you the ability to launch Voxwav from any where on your phone or tablet

if you don't want to use tasker there is an app called Swipeup Utility That says it can do the same thing

thacolonel

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #37 on: April 16, 2015, 06:29:47 PM »
Thanks so much for both the wiki and the video. I was able to get both the simple and advanced versions to work, though definitely getting much better results with the advanced so I'll be sticking with that method. I haven't quite figured out how to get TTS to work yet with using this method. I also wanted to point out that it seemed to work much better for me when I used the Autovoice Recognized as an event rather than a state. This also made it so the profile wasn't continuously running.

I am mainly trying to use this for remote access. I was able to get VoxWav Pro to get commands to work remotely using my dydns and forwarding ports 33000 and 33339. However I am having trouble getting responses back in VoxWav as neither OSD or TTS are showing up. Both of these work great when I am on the local network though.

« Last Edit: April 16, 2015, 06:35:12 PM by thacolonel »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Using Tasker with VoxCommando
« Reply #38 on: April 16, 2015, 07:05:20 PM »
I think the only way to really use VoxWav is to set up a VPN.  I have tried it and it worked fine.  If you have a router that supports VPN it is pretty straightforward to set up.  Your phone will act as though it is on your local network.

With just using DynDNS and port forwarding You can send voice data to VoxCommando because that is done over TCP but all other communication between the two programs is done through UDP which doesn't normally traverse WAN connections.

When I created VoxWav I really didn't think much about making it work from remote locations.

thacolonel

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #39 on: April 16, 2015, 08:44:04 PM »
Thanks for the quick reply. I was able to get TTS to work through AutoRemote using scrape, so I'll probably hold off on going through the VPN route for now. I'm using it with Vera and it is working great with the built in "Turning {PF.1}{PF.2}" command remotely. Thanks again for this awesome app.

IKROWNI

  • $upporter
  • Sr. Member
  • *****
  • Posts: 146
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #40 on: August 25, 2015, 12:50:37 AM »
sorry to dig up an old thread but im having the same issue as another user. when i issue a command from the "ok google" promp on my moto 360 voxcommando sees the correct commands and sometimes even fires the commands but most of the time it pops up saying "emulate" any ideas on how i can fix this issue? i know all is setup and working since it does work on occasion.

EDIT: Also one other small issue im having is that if my phone screen isnt on then the commands dont even attempt to go through. and im always left with the google search on my watch is there a way to make the google search clear itself after the command has gone through? for example i say "turn the office lights off" and after the command fires the watch has an image of a guy flipping a switch or a google search query leftover on the watch.
« Last Edit: August 25, 2015, 12:53:35 AM by IKROWNI »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Using Tasker with VoxCommando
« Reply #41 on: August 25, 2015, 08:23:22 AM »
This is a three page thread that references other threads. We have no idea how you have set things up.

Does it work only for single word commands?

IKROWNI

  • $upporter
  • Sr. Member
  • *****
  • Posts: 146
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #42 on: August 25, 2015, 09:29:27 PM »
This is a three page thread that references other threads. We have no idea how you have set things up.

Does it work only for single word commands?

yes short commands seem to work just fine. its only large commands like "dim the office light to 80%" that causes the EMULATE: part to pop up. and also it thinks im saying "280" instead of "to 80" and causing more issues.

My setup consists of a moto 360 smartwatch that i use a combination of autovoice, autowear, and autoremote on my Galaxy S4, from there most of the commands are routed to either eventghost or voxcommando. This probably doesnt help much though without actually seeing all of my setup.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Using Tasker with VoxCommando
« Reply #43 on: August 25, 2015, 09:43:14 PM »
yes short commands seem to work just fine.

James actually asked specifically about one word commands. When you say "short commands" what do you mean? Do two-word commands work consistently? Just one-word commands? Are three-word commands "short commands"?

Quote
its only large commands like "dim the office light to 80%" that causes the EMULATE: part to pop up. and also it thinks im saying "280" instead of "to 80" and causing more issues.

There are no "pop-ups" in VC, so it's not clear what you mean here.

At any rate, do you see anything apart from "Emulate:"? i.e. is there ever anything after the colon?

There's nothing VC can do about Google interpreting your command wrong, of course. But it does hint at which of the various possible implementations of Tasker + Autovoice + VC you might be using, which is what James was referring to when he spoke about the fact that you haven't explained to us your set-up. We need to know which method of interacting with Tasker you are using to be able to help you.

Quote
My setup consists of a moto 360 smartwatch that i use a combination of autovoice, autowear, and autoremote on my Galaxy S4, from there most of the commands are routed to either eventghost or voxcommando. This probably doesnt help much though without actually seeing all of my setup.

You're right, that doesn't help us.

It might help a little if you could tell us which of the different ways of setting up Tasker/Autovoice *to communicate with VC* you are using. At least three ways are described here: http://voxcommando.com/mediawiki/index.php?title=Using_Tasker_with_VoxCommando

Which one are you using?

« Last Edit: August 25, 2015, 09:46:12 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

IKROWNI

  • $upporter
  • Sr. Member
  • *****
  • Posts: 146
  • Karma: 2
    • View Profile
Re: Using Tasker with VoxCommando
« Reply #44 on: August 25, 2015, 10:46:29 PM »
James actually asked specifically about one word commands. When you say "short commands" what do you mean? Do two-word commands work consistently? Just one-word commands? Are three-word commands "short commands"?

There are no "pop-ups" in VC, so it's not clear what you mean here.

At any rate, do you see anything apart from "Emulate:"? i.e. is there ever anything after the colon?

There's nothing VC can do about Google interpreting your command wrong, of course. But it does hint at which of the various possible implementations of Tasker + Autovoice + VC you might be using, which is what James was referring to when he spoke about the fact that you haven't explained to us your set-up. We need to know which method of interacting with Tasker you are using to be able to help you.

You're right, that doesn't help us.

It might help a little if you could tell us which of the different ways of setting up Tasker/Autovoice *to communicate with VC* you are using. At least three ways are described here: http://voxcommando.com/mediawiki/index.php?title=Using_Tasker_with_VoxCommando

Which one are you using?

Sorry if i seemed vague in my answer but yes 1, 2 and 3 word commands seem to work okay and i havent run into much issue with these "short commands"

I am using the "advanced method" and yes i see the full command after the colon.

If i say into my watch " dim the office lights to 30%" ill either get one of the 2 errors below

"dim the office lights 230 percent"

or

"Emulate: dim the office lights to 30 percent"



and as for popups i didnt mean a popup as in like an advertisement or anything i mean the "emulate issue doent arise." it pops up in the speech bar where it shows what you have said into voxcommando.


i dont really understand how it could be misunderstood what i was saying.

James asked if it happens with 1 word commands and i responded back "its only large commands like "dim the office light to 80%" that causes the EMULATE: part to pop up. and also it thinks im saying "280" instead of "to 80" and causing more issues."
« Last Edit: August 25, 2015, 10:51:44 PM by IKROWNI »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Using Tasker with VoxCommando
« Reply #45 on: August 26, 2015, 08:50:16 AM »
Thanks for the clear explanation.

What you are seeing after the "emulate" is the text message that was sent to VC from Tasker.

The problem is that it is sending VC text that does not match how your commands are written. VC can only execute commands that are actually in your command tree.

If Google always sends the word "percent" and in your VC command you have used the symbol "%" instead, then the easiest solution is to change your command phrase in VC so that it also says "percent."

If Google is sending VC the text "230" and your command does not include a range of values up to 230 -- again -- VC can't execute the command because that doesn't correspond to an existing command.

As James says at the beginning of the video tutorial for using Tasker and elsewhere on the forum, the reason that VoxWav is generally a better option than Google is because when you are using Google, Google is interpreting what you are saying without having any context. It's just "guessing".

It then sends its interpretation as text to VC (via Tasker). When you use the "advanced" version, it is sending several of its top interpretations and if any of those match your command then VC will execute it. However, if none of Google's interpretations match your command there's not much that can be done.

VoxWav, by contrast, is sending audio to VC, and leaving the interpretation to VC -- VC has the context to properly interpret your commands. That is how it knows that you're saying "dim the office lights to 30%" and not "dim the office lights 230 percent".

If you notice a pattern, you can try to re-write your commands in VC to better reflect how Google tends to interpret you, but there is nothing else that can be done on the VC end if you want to use the Tasker solution.

As to the question of why we didn't understand your original posts: It's important to be precise when explaining computer problems and solutions, and very easy for users to mean many different things. Different things hint at different causes and require different solutions.

If only one-word commands were understood but not two-word commands, that would indicate a particular problem, whereas "short commands" means something different, and the specific example of a long command that clearly involves payloads may indicate something entirely different, but short commands may also include payloads and you provided no example of a short command as a basis of comparison.

It's just easier and more efficient on all sides if we try to be concise, or demonstrate with screenshots etc. when words won't cut it.
« Last Edit: August 26, 2015, 08:54:33 AM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)