Speech Library

Typelibrary
Dictionarynative.speech
LibrarySpeech Library
Associationscom.livecode.library.native.speech
Summary

A speech synthesizer library.

OSandroid, ios, mac
Description

The speech synthesizer library provides functions for selecting from available voices and synthesizing speech.

TypeNameSummarySyntax
commandrevLoadSpeech

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

Sets the speed at which the revSpeak command speaks.

revSetSpeechSpeed <wordsPerMinute>

- - -revSetSpeechVoice

Specifies which voice to use with the revSpeak command.

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

Halts a speech that was started with the revSpeak command.

revStopSpeech

- - -revUnloadSpeech

Removes the operating system's text-to-speech software from memory.

revUnloadSpeech

functionrevGetSpeechVolume

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>])

handlerspeechFinalizeLibrary

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>)

librarySpeech Library

A speech synthesizer library.

speechSpeakUtterance(<pString>)

messagespeechLibraryInitialized

Sent when the library initialization completes.

speechLibraryInitialized <pSuccess>

- - -speechUtteranceDidFinish

Sent when an utterance is finished speaking

speechUtteranceDidFinish <pCompleted>