News:

VoxCommando supports plugins for a wide variety of programs and devices. Contact us if you want to create your own.

Main Menu

Commands Over Loud Music / Noise

Started by pmdaniels73, June 11, 2013, 05:31:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jitterjames

Quote from: Kalle on June 13, 2013, 05:32:02 AM
A simpler way is to run multiple instances of VC togther - to do this, install two VC's in different folders and create for each a d, open the properties for each link and type at the end of the command line -new, this allowed you to open more then one VC at the same time.

I strongly disagree.  It might be easier to set up, but running side by side instances of VoxCommando is almost never a good solution, and I would not recommend trying it unless you really know what you are doing.

Kalle

Quote from: pmdaniels73 on June 13, 2013, 06:10:33 AM
Kalle you are awesome! I done the drag and drop procedure. I did get some error message when i chose "voicecommands" from the itunes folder like albums.xml could not be found and they were hilighted in yellow after clicking ok through all the error pop ups. However when i closed and re-opened VC it seemed to be fine. Now this is where I am. How will VC know when I issue a command like "play artist Jack Johnson" if it should play in itunes or xbmc?
the errors come when the xml's was missing - and that is why I'm writing "It is important that you copy..." you must copy the iTunes payloads album/artist xml's also.

QuoteNow this is where I am. How will VC know when I issue a command like "play artist Jack Johnson" if it should play in itunes or xbmc?

VoxCommando doesn't know this by it self, you can create a command to enable/disable groups

take a look in the VC action tree when you create a command - you find actions like VC.DisableGroup and there is also something in our WiKi if you click on the "View help on WiKi" button.
***********  get excited and make things  **********

jitterjames

He probably needs to run genxml now for both XBMC and iTunes.

But I think trying to combine these configurations is too advanced for a beginner.

pmdaniels73

Good morning Mr. James! I would say just having two seperate VC's would be the easiest. I am just going to go that route.

P.S. Are there any commands to get the old lady to cook or clean house? LOL!

jitterjames

I think it is best for now.  At some point, when you know the program better, and maybe if you give up trying to bypass the activation process and actually buy a license, we can look at something a bit more sophisticated.  ;D

pmdaniels73

So I put the intercom with prefix group in my tree. I went into options and turned on prefix mode. I typed in a prefix word. I set the idle timeout for 5 seconds. I saved settings. Restarted VC. After the 5 seconds VC went into standby mode. I spoke my prefix word. The word I spoke shows up as if VC is hearing me. However VC does not go into listen mode and mute volume when I speak the prefix word. What have I done wrong?

pmdaniels73

Ok. So I got everything working except for the volume part. I think I know what is wrong. The xml file is not set to control the actual xbmc volume. Since I am using VC on a remote computer I would imagine this is why the volume is not muting when I speak the prefix word. So if this is the case would someone be nice enough to guide me through any changes I need to make in order to get this to work?

Thanks!

jitterjames

Can you please refer me to the exact XML that you are using.  The best would be if you could do the following

1- In the command tree editor right-click the group and then select copy.

2- Reply to this forum post, click the code icon (button above the message entry text box with a # symbol on it), and then type ctrl-v to paste the code.

I guess you are using Frodo, so we will only need to change you actions to use xJSON softmute actions.

Please note that a prefix does not turn VC green.  It only allows a command to execute when you are in standby mode.  The prefix must be spoken at the beginning of a command, as part of the command.  You can't just say the prefix and then wait. To do that you should just use the pay attention command.  You could also get the pay attention command to lower you volume if you wanted, and restore the volume when you return to standby mode.

jitterjames

I don't know why you posted this in the Feature Request portion of the forum.  This is not a feature request, you are asking for help to understand how to use the features that already exist.  I will move this thread now.

pmdaniels73

#24
Sorry James for posting in the wrong location. Yes I am using frodo. Below is the xml I am using. Taken from Hallle.

pmdaniels73

<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="False" name="Vox Intercom with prefix and idle timeout" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="1704" name="Ducking End" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>LastActionSuccess</ifType>
      <ifParams>&amp;&amp;</ifParams>
      <then>
        <action>
          <cmdType>XBMC.SoftUnMute</cmdType>
          <cmdString />
          <cmdRepeat>1</cmdRepeat>
        </action>
      </then>
      <else />
    </if>
    <action>
      <cmdType>VC.Standby</cmdType>
      <cmdString />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>VC.Prefix.End</event>
  </command>
  <command id="1642" name="Ducking start" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>ProcessRunning</ifType>
      <ifParams>xbmc&amp;&amp;</ifParams>
      <then>
        <action>
          <cmdType>XBMC.SoftMute</cmdType>
          <cmdString>20</cmdString>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </then>
      <else />
    </if>
    <action>
      <cmdType>VC.On</cmdType>
      <cmdString />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>VC.Prefix.Start</event>
  </command>
  <command id="942" name="idle timeout" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>ProcessRunning</ifType>
      <ifParams>XBMC&amp;&amp;</ifParams>
      <then>
        <action>
          <cmdType>XBMC.SoftUnMute</cmdType>
          <cmdString />
          <cmdRepeat>1</cmdRepeat>
        </action>
      </then>
      <else />
    </if>
    <action>
      <cmdType>VC.Standby</cmdType>
      <cmdString />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>vc.idletimeout</event>
  </command>
</commandGroup>

jitterjames

#26
OK.  That's a kind of weird way of doing things.

I think you should get rid of that group and replace it with this one...


<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="True" name="prefix softmuting for xJson" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="1704" name="Ducking End" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.SoftUnMute</cmdType>
      <cmdString />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>VC.Prefix.End</event>
  </command>
  <command id="1642" name="Ducking start" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.SoftMute</cmdType>
      <cmdString>50</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>VC.Prefix.Start</event>
  </command>
</commandGroup>

pmdaniels73

Alright Mr. James. Here is what I am getting when trying the suggested group. And I do truly apologize in my ignorance in the matter. It just takes me a little bit to grasp things.

Kalle

Quote from: pmdaniels73 on June 15, 2013, 02:31:10 PM
Alright Mr. James. Here is what I am getting when trying the suggested group. And I do truly apologize in my ignorance in the matter. It just takes me a little bit to grasp things.
Here is a very, very short Video-Tutorial how you copy code in the VC commandtree-editor  ::)

http://www.youtube.com/watch?v=WloGXocFEYw
***********  get excited and make things  **********

jitterjames