GetDevices

(VoiceTalk Module)

Description: Runs in the VoiceTalk thread and returns a list of devices available on a SAPI text-to-speech stream.
Returns: Array
Usage: Script Only.
Function Groups: Speech and Sound
Related to: Configure | GetVoices | Reset | ShowLexicon | Speak | VoiceTalk
Format: VoiceTalkStream\GetDevices()
Parameters:  
VoiceTalkStream
Required. A speech stream returned from VoiceTalk.
Comments: This function will immediately return a 1-dimensional list of output device names available for the text-to-speech stream. The strings in this array are suitable to pass as devices to the VoiceTalk\Configure module.

Example:

  SHandle = \VoiceTalk();
  If Valid(SHandle) && ! GetDevices;
  [
    GetDevices = 1;
    SDevices = SHandle\GetDevices();
  ]

This will return an array of all available text-to-speech output devices in the array SDevices.