Initializes the object. The Ready event will be raised when the text to speech engine is ready. EventName - The Sub that will handle the Ready event.
IsInitializedAsBoolean
PitchAsFloat [write only]
Sets the pitch value. Default is 1. Example: TTS1.Pitch = 1.5
Release
Releases any resources related to this object. You will need to initialize the object again before use. Note that it is safe to call this method with an uninitialized object.
Sets the spoken language. Language - Language code. Two lowercase letters. Country - Country code. Two uppercase letters. Pass an empty string if not needed. Returns True if a matching language is available. The country value will be ignored if the language code matches and the country code does not match.
Speak (TextAsString, ClearQueueAsBoolean)
Speaks the given text. ClearQueue - If True then all waiting texts are dismissed and the new text is spoken. Otherwise the new text is added to the queue.
SpeechRateAsFloat [write only]
Sets the speech rate. Default is 1. Example: TTS1.SpeechRate = 0.5
Stop
Stops speaking any currently playing text (and dismisses texts in the queue).
Top