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.