This function speaks some text and saves the result in a WAV file.
Parameter: text
Type: string
Description: This is the string you want to speak.
Parameter: voice
Type: string
Description: This is the name of the voice you want to use for speaking.
This string
must match the voice name exactly. Voice
names can be found in the Speaker
Client. If
the name is omitted, the default voice as specified in the computer's
speech control panel is used.
Parameter: filename
Type: string
Description: This is the full path to the file where the voice output will
be saved.
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.
None.
sub main()
hs.SpeakToFile "Hello from a file!", "ATT DTNV 1.3 Crystal","c:\voice.wav"
end sub