Author Topic: softmute - softunmute do not fuction/  (Read 5394 times)

0 Members and 1 Guest are viewing this topic.

chilliman

  • Jr. Member
  • **
  • Posts: 30
  • Karma: 1
    • View Profile
softmute - softunmute do not fuction/
« on: July 27, 2015, 01:49:32 PM »
Hi.
i have a used the LCB to make a command to run, wunder (weather) while running Itunes starting with
   
itune.softmute
WUnder.GetCurrent
TTs.SDpeak  - lastresult
itunes.softunmute

when i run it the volume stays the same and i can hear both.
ant ideas or am i dong it wrong
thanks
chilliman
« Last Edit: July 27, 2015, 04:50:59 PM by chilliman »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: softmute - softunmute do not fuction/
« Reply #1 on: July 27, 2015, 05:50:58 PM »
Can you please copy and paste the actual xml for your command so we can test it?

Just right-click on the command in your command tree, copy it, then you can paste it here in a "code box" by clicking the # symbol and then paste (Ctrl-V).

Thank you.
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)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: softmute - softunmute do not fuction/
« Reply #2 on: July 27, 2015, 07:26:05 PM »
It is always much better if you post the actual XML for your command in a code box on the forum so that we can see exactly what you are doing, and make sure you have not made any spelling mistakes etc.  It also makes it much easier for us to test your command because we can just copy and paste it to our own command tree.

That said, in this case I think your problem is that you need to use TTS.SpeakSync because otherwise your SoftUnmute fires immediately without waiting for the TTS.Speak to finish and it seems like it is not working.  Another option would be to use a pause before unmute but SpeakSync is usually better since it will wait the correct amount of time.

chilliman

  • Jr. Member
  • **
  • Posts: 30
  • Karma: 1
    • View Profile
Re: softmute - softunmute do not fuction/
« Reply #3 on: July 27, 2015, 11:35:54 PM »
hi .
i found the JRiver media center was more suited to my needs but i have the same problem i know it me doing something wrong not sure what. code listed below .
still learning .

chilliman


Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.8-->
<groupCollection open="True" name="my commands">
  <commandGroup open="False" name="Weather" enabled="True" prefix="" priority="0" requiredProcess="" description="">
    <command id="1316" name="weather" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
      <action>
        <cmdType>JRiver.SoftMute</cmdType>
        <params>
          <param>20</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>WUnder.GetCurrent</cmdType>
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>{LastResult}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>JRiver.SoftUnmute</cmdType>
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
      <phrase>weather</phrase>
    </command>
  </commandGroup>
</groupCollection>

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: softmute - softunmute do not fuction/
« Reply #4 on: July 28, 2015, 03:34:55 AM »
Hi chilliman, James has given you the solution - you must use TTS.SpeakSync instead of TTS.Speak!


TTS.SpeakSync is the same as TTS.Speak, but VC will wait until speaking is complete before continuing to the next action.


Try this:


Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.5.1-->
<groupCollection open="True" name="my commands">
  <commandGroup open="True" name="Weather" enabled="True" prefix="" priority="0" requiredProcess="" description="">
    <command id="1316" name="weather" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
      <action>
        <cmdType>JRiver.SoftMute</cmdType>
        <params>
          <param>20</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>WUnder.GetCurrent</cmdType>
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <params>
          <param>{LastResult}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>JRiver.SoftUnmute</cmdType>
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
      <phrase>weather</phrase>
    </command>
  </commandGroup>
</groupCollection>
***********  get excited and make things  **********

chilliman

  • Jr. Member
  • **
  • Posts: 30
  • Karma: 1
    • View Profile
Re: softmute - softunmute do not fuction/
« Reply #5 on: July 28, 2015, 09:56:29 AM »
thanks guys , i made the changes the music level drop but the voice volume is drop also can you control the voice level independent from VRiver volume level.
sorry for being a pain in the butt still on that learning curve.

thanks
chilliman   
« Last Edit: July 28, 2015, 10:18:42 AM by chilliman »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: softmute - softunmute do not fuction/
« Reply #6 on: July 28, 2015, 12:33:31 PM »
thanks guys , i made the changes the music level drop but the voice volume is drop also can you control the voice level independent from JRiver volume level.


Yes, it should be possible but you need to adjust your JRiver audio settings. Consult JRiver's documentation for more information. By default, JRiver's volume is tied to the system volume, but it should be possible to control them independently.
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)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • 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)

chilliman

  • Jr. Member
  • **
  • Posts: 30
  • Karma: 1
    • View Profile
Re: softmute - softunmute do not fuction/
« Reply #8 on: July 28, 2015, 01:32:30 PM »
thank you.
that did the trick working great.

thanks again

chilliman