News:

HOT TIP! Commands and groups can be copied and pasted directly from your command editor to the forum, and vice versa. This makes sharing command XML on the forum much easier!

Main Menu

confirm command TTS.Speak

Started by Kalle, March 24, 2011, 06:40:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kalle

I'm search for a way to let executed "sound.setvol" command to confirm via TTS.voice

example: Command "set volume to 50"
answer: "Volume set to 50"
***********  get excited and make things  **********

Wanilton

#1
Kalle,

Try this
Sound.SetVol - {1}
SetVoiceNum - 4
Sound.GetVol
TTS.Speak - Volume Set to {1}

This it ok, it´s work for me.

Command Attached - import this.

Wanilton

www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

Kalle

#2
Quote from: Wanilton on March 24, 2011, 08:59:07 PM
Kalle,

Try this
Sound.SetVol - {1}
SetVoiceNum - 4
Sound.GetVol
TTS.Speak - Volume Set to {1}

This it ok, it´s work for me.

Command Attached - import this.

Wanilton


Thanks Wanilton, you are the best  ;)

Kalle

sound.GetVol, that I'm not have guessed  :bonk  :bonk  :bonk
***********  get excited and make things  **********

jitterjames

you can delete the line:

Sound.GetVol

and it will still work. :bonk  You only need the {1} which will always be replaced with the payload you spoke.  If you say "set volume 55", then {1} will be replaced with 55.  The value will be available until the entire command has completed.

if you want to use GetVol by itself, because you didn't set the volume with a payload.  Example: "what is the current volume?"   Then you should use sound.getVol.  But in that case the answer is not stored in {1}.  You would get the answer from {lastResult}

does that make sense?  Understanding this is key to being able to write and edit your own commands.

Kalle

Quote from: jitterjames on March 25, 2011, 09:37:55 AM
you can delete the line:

Sound.GetVol

and it will still work. :bonk  You only need the {1} which will always be replaced with the payload you spoke.  If you say "set volume 55", then {1} will be replaced with 55.  The value will be available until the entire command has completed.

if you want to use GetVol by itself, because you didn't set the volume with a payload.  Example: "what is the current volume?"   Then you should use sound.getVol.  But in that case the answer is not stored in {1}.  You would get the answer from {lastResult}

does that make sense?  Understanding this is key to being able to write and edit your own commands.

Ok, the" Voxinator" is right  :D
It works with out GetVol, and as you said, this makes sense. Hey Wanilton, but you was the first  ;)

Kalle
***********  get excited and make things  **********