Author Topic: Need help to adjust system sounds  (Read 3029 times)

0 Members and 1 Guest are viewing this topic.

Esgal

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 1
    • View Profile
Need help to adjust system sounds
« on: August 09, 2015, 07:51:34 AM »
Hi. Sry fo my english.
I have laptop with Win 8.1 x64 and voxcommando2/
And I need help. )
Task is to adjust system sounds via voxcommand.
how can I do it?
Sorry for noob question...

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Need help to adjust system sounds
« Reply #1 on: August 09, 2015, 08:21:43 AM »
Hi Esgal,

There is a bug in the audio in version 2.1.4.8 so if you are using that version I strongly recommend that you upgrade to version 2.2.0.7
http://voxcommando.com/home/downloads/

The added bonus is that 2.2.0.7 offers the option to switch to a Russian UI !

If for some reason you do not want to upgrade you can replace the dll file with the attached file.  Look in your VoxCommando folder and then in the subfolder named "dlls".

You must close VoxCommando before trying to replace the dll. 
After replacing the file check to see if you need to unblock the dll.
http://www.limilabs.com/blog/unblock-dll-file

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Need help to adjust system sounds
« Reply #2 on: August 09, 2015, 08:30:10 AM »
As James says, the bug in version 2.1.4.8 affects the system sound actions.

Here are some examples of how to adjust the system sound, generally.

This is a command group. You can copy and paste all the code into your command tree to test and edit the commands.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.7-->
<commandGroup open="True" name="Adjusting system sound" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="357" name="adjust system volume" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Sound.AdjustVol</cmdType>
      <params>
        <param>{2}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>OK. Volume {1} by {2}.</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Volume</phrase>
    <payloadList>up, down</payloadList>
    <payloadList>3,5,10,15,20</payloadList>
  </command>
  <command id="358" name="set system volume to" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Sound.SetVol</cmdType>
      <params>
        <param>{1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Setting volume to {1} %.</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>set system volume to</phrase>
    <payloadRange>1,100</payloadRange>
    <phrase>percent</phrase>
  </command>
  <command id="359" name="mute system volume" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>(A)==(B)</ifType>
      <ifParams>{1}&amp;&amp;mute</ifParams>
      <then>
        <action>
          <cmdType>Sound.Mute</cmdType>
          <params />
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>OSD.ShowText</cmdType>
          <params>
            <param>OK. Muting volume.</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </then>
      <else>
        <action>
          <cmdType>Sound.Unmute</cmdType>
          <params />
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>OSD.ShowText</cmdType>
          <params>
            <param>OK. Unmuting volume.</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </else>
    </if>
    <payloadList>mute, unmute</payloadList>
    <phrase>system volume</phrase>
  </command>
</commandGroup>

Click here for a video demonstration showing how to copy code into your command tree.
« Last Edit: August 09, 2015, 08:33:44 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)

Esgal

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 1
    • View Profile
Re: Need help to adjust system sounds
« Reply #3 on: August 09, 2015, 09:10:53 AM »
Thnx!
Now all work fine))))))))