revSpeechVoices

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
revSpeechVoices([<voiceGender>])
Associationsspeech library
Summary

Returns a list of available voices to use with the revSetSpeechVoice command.

Introduced2.0
OSmac, windows
Platformsdesktop, server
Parameters
NameTypeDescription
voiceGender

One of "male", "female", or "neuter". If you don't specify a voiceGender, all voices are returned.

Example
revSpeechVoices()
revSpeechVoices("female")
put revSpeechVoices("neuter") into button "Voices Menu"
Values
NameTypeDescription
return

The revSpeechVoices function returns a list of voice names, one per line.

RelatedKeyword: line
Control Structure: function
Command: revSetSpeechVoice, revSpeak, revSetSpeechProvider
Library: Speech library
Glossary: parameter, Standalone Application Settings, command, return, standalone application, LiveCode custom library
Description

Use the revSpeechVoices function to find out what voices can be used to speak text on the current system.

The revSpeechVoices function returns a list of voices installed on the current system. Each voice is either male, female, or neuter, and you can use the optional voiceGender parameter to request one of the genders.

Important: The revSpeechVoices function is part of the Speech library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "Speech" library checkbox is checked.

Tagsmultimedia