Author Topic: Commands Over Loud Music / Noise  (Read 9131 times)

0 Members and 1 Guest are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Commands Over Loud Music / Noise
« Reply #15 on: June 13, 2013, 07:44:15 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

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Commands Over Loud Music / Noise
« Reply #16 on: June 13, 2013, 07:48:57 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.

Quote
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?

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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Commands Over Loud Music / Noise
« Reply #17 on: June 13, 2013, 08:23:55 AM »
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

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Commands Over Loud Music / Noise
« Reply #18 on: June 13, 2013, 12:33:29 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Commands Over Loud Music / Noise
« Reply #19 on: June 13, 2013, 12:36:50 PM »
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

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Commands Over Loud Music / Noise
« Reply #20 on: June 15, 2013, 03:30:37 AM »
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

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Commands Over Loud Music / Noise
« Reply #21 on: June 15, 2013, 04:07:10 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Commands Over Loud Music / Noise
« Reply #22 on: June 15, 2013, 08:01:15 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Commands Over Loud Music / Noise
« Reply #23 on: June 15, 2013, 10:36:46 AM »
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

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Commands Over Loud Music / Noise
« Reply #24 on: June 15, 2013, 12:04:30 PM »
Sorry James for posting in the wrong location. Yes I am using frodo. Below is the xml I am using. Taken from Hallle.
« Last Edit: June 15, 2013, 12:40:07 PM by jitterjames »

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Commands Over Loud Music / Noise
« Reply #25 on: June 15, 2013, 12:34:16 PM »
Code: [Select]
<?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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Commands Over Loud Music / Noise
« Reply #26 on: June 15, 2013, 12:39:38 PM »
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...


Code: [Select]
<?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>
« Last Edit: June 15, 2013, 12:42:01 PM by jitterjames »

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Commands Over Loud Music / Noise
« Reply #27 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.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Commands Over Loud Music / Noise
« Reply #28 on: June 15, 2013, 03:19:57 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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Commands Over Loud Music / Noise
« Reply #29 on: June 15, 2013, 03:26:53 PM »
Thanks Kalle. I hope it helps.