Speech Library | |
Type | library |
Dictionary | native.speech |
Library | Speech Library |
Associations | com.livecode.library.native.speech |
Summary | A speech synthesizer library. |
OS | android, ios, mac |
Description | The speech synthesizer library provides functions for selecting from available voices and synthesizing speech. |
Type | Name | Summary | Syntax |
---|---|---|---|
command | revLoadSpeech | Loads the operating system's text-to-speech software from memory. | revLoadSpeech |
- - - | revSetSpeechPitch | Sets the pitch (whether the voice is high or low) to be used with text to speech. | revSetSpeechPitch <pitchLevel> |
- - - | revSetSpeechProvider | The speechProvider is either "sapi4", "sapi5" or "speechmanager", or empty for the default. | revSetSpeechProvider <speechProvider> |
- - - | revSetSpeechSpeed | revSetSpeechSpeed <wordsPerMinute> | |
- - - | revSetSpeechVoice | revSetSpeechVoice <voiceName> | |
- - - | revSetSpeechVolume | Sets the volume at which the revSpeak command speaks. | revSetSpeechVolume <volume> |
- - - | revSpeak | Speaks text through the computer's speakers. | revSpeak <phraseToSpeak> |
- - - | revStopSpeech | revStopSpeech | |
- - - | revUnloadSpeech | Removes the operating system's text-to-speech software from memory. | revUnloadSpeech |
function | revGetSpeechVolume | Returns the current speech volume | revGetSpeechVolume() |
- - - | revIsSpeaking | Returns true or false, depending on whether a phrase is currently being spoken by the revIsSpeaking command. | revIsSpeaking() |
- - - | revSpeechVoices | Returns a list of available voices to use with the revSetSpeechVoice command. | revSpeechVoices([<voiceGender>]) |
handler | speechFinalizeLibrary | Finalize the library | speechFinalizeLibrary() |
- - - | speechGetVoices | Get an array of system voice information | speechGetVoices() |
- - - | speechInitializeLibrary | Initialize the library | speechInitializeLibrary() |
- - - | speechSetPitch | Set the voice pitch | speechSetPitch(<pPitch>) |
- - - | speechSetRate | Set the speech rate | speechSetRate(<pRate>) |
- - - | speechSetVoice | Set the voice | speechSetVoice(<pVoiceIdentifier>) |
- - - | speechSpeakUtterance | Synthesize text to speech | speechSpeakUtterance(<pString>) |
library | Speech Library | A speech synthesizer library. | speechSpeakUtterance(<pString>) |
message | speechLibraryInitialized | Sent when the library initialization completes. | speechLibraryInitialized <pSuccess> |
- - - | speechUtteranceDidFinish | Sent when an utterance is finished speaking | speechUtteranceDidFinish <pCompleted> |