SetVolumeEx

Purpose

This function sets the master volume of the system sound device that the speaker client(s) are using.  This can be used to set the volume of the text-to-speech output.  The volume level must be in a range between 0 and 100, where 100 is the maximum volume.  

To change the volume for the MEDIA functions, use MediaVolume.

Parameters

Parameter: level
Type: integer (.NET Short)
Description: This is the volume level, from 0 to 100.

Parameter: host (optional)
Type: string
Description: Leaving this a null string will apply the command to the first instance HomeSeer finds, otherwise use the hostname of the computer for this command.  If more than one instance of the Speaker application is running on "host" then you may need to specify the instance as well in the format host:instance.

Returns

None.

Example

sub main()

 

hs.SetVolumeEx 90

hs.speak "I am speaking louder",TRUE

hs.SetVoumeEx 20, "Kitchen"

hs.speak "I am speaking softer on the Kitchen computer than on the others.",TRUE

 

end sub