SPEECH SYNTHESIS

 

HASE supports voice synthesis via the Microsoft Text2Speech (TTS) engine. This engine is publicly available at Microsoft Intelligent Interface Technologies. The TTS  engine is available in the scripting engine as the "text2speech" object. (Note: As of BETA 2, this name is configurable in GATEWAY.TXT) This object exposes all the properties and methods of the Microsoft Direct Speech Synthesis Control. To use the capability, simply call the "speak" method of the TTS. The following example will "speak" the artist and track information as each song starts playing.

 

sub cdjr_playing (params)
    
    split_params = split(params , chr(34) & "," & chr(34))

    artist = split_params(1)
    track = split_params(2)

    info = "Now Playing " & track & " by " & artist 

    text2speech.command("speak " & info)
end sub

A command line option allows you to select the voice used by the TTS engine, although this and other attributes can be changed by the code within your script.

 

TEXT2SPEECH SOCKET SERVER CONFIGURATION