Author Topic: volume amplification shortcut  (Read 3556 times)

0 Members and 1 Guest are viewing this topic.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
volume amplification shortcut
« on: February 02, 2015, 06:09:51 PM »
This was Discussed on here over a year ago - shortcut for volume amplification

I came across another way of doing it with a direct command (no OSD Setting Window)

XBMC Volume Amplification
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.3.3-->
<commandGroup open="True" name="XBMC Volume Amplification" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="931" name="Amp volume {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Input.ExecuteAction</param>
        <param>"action":"volampup"</param>
      </params>
      <cmdRepeat>{1}</cmdRepeat>
    </action>
    <phrase>Increase, Amplifie, Raise</phrase>
    <phrase optional="true">the</phrase>
    <phrase>Volume</phrase>
    <phrase optional="true">by</phrase>
    <payloadRange>1,60</payloadRange>
  </command>
  <command id="560" name="decrease volume {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Input.ExecuteAction</param>
        <param>"action":"volampdown"</param>
      </params>
      <cmdRepeat>{1}</cmdRepeat>
    </action>
    <phrase>decrease, lower</phrase>
    <phrase optional="true">the</phrase>
    <phrase>Volume</phrase>
    <phrase optional="true">by</phrase>
    <payloadRange>1,60</payloadRange>
  </command>
  <command id="863" name="Default Volume" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Input.ExecuteAction</param>
        <param>"action":"volampdown"</param>
      </params>
      <cmdRepeat>60</cmdRepeat>
    </action>
    <phrase> Reset Default Volume</phrase>
  </command>
</commandGroup>

The "reset default volume" command sends the decrease volume command 60 times so even if you had your volume increased by 10 it would still send the decrease volume command 60 times
« Last Edit: February 02, 2015, 09:41:39 PM by PegLegTV »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: volume amplification shortcut
« Reply #1 on: February 02, 2015, 08:25:07 PM »
Nice one!  Looks like a "gem" to me. :D

I think there are probably all sorts of little things like this that were added since Eden, or even after Frodo that we can now do with the JSON api.

The hardest part (for me) is organizing them to see what is missing and what is worth adding to the default configs.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: volume amplification shortcut
« Reply #2 on: February 02, 2015, 08:34:20 PM »
The "reset default volume" command sends the decrease volume command 60 times so even if you had your volume increased by 10 it would still send the decrease volume command 60 times

OOps.

There is also an error in your default volume command that you posted.  Somehow you got the wrong action in there. You are sending a page down keypress.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
Re: volume amplification shortcut
« Reply #3 on: February 02, 2015, 09:44:51 PM »
Sorry about that,  for awhile I remapped "Page down" to "volampdown" before I updated the command

Updated the first post with the fixed command

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: volume amplification shortcut
« Reply #4 on: February 03, 2015, 12:18:59 AM »
Nice one!  Looks like a "gem" to me. :D

just to make sure it is not something that I index in the Gems forum, no? (as it will be part of XBMC commands)
When Voice command gets tough, use hand gestures

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: volume amplification shortcut
« Reply #5 on: February 03, 2015, 08:56:50 AM »
I will try to add it to the default config but I think it is OK to put it in "gems" too.

What I actually need is probably a special thread where we can keep track of missing "essential" Kodi commands can be posted so that I can consult it from time to time and update the standard configs accordingly.

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: volume amplification shortcut
« Reply #6 on: April 14, 2015, 04:13:25 PM »
Yep, this is awesome.  Thanks a million!

xxx
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb