Speak Method

object.Speak(speakString as String, flags as Long)

Renders a text string into speech.

· Example:

Call Vtxt.Speak(ESpeakBuf.TEXT, vtxtst_STATEMENT)

object

Voice-text object.

speakString

Text to be spoken.

flags

Type of speech and its priority. The type of speech can be one of these values:

Value

Description

vtxtst_COMMAND

An instruction to the user, such as "Insert the disk."

vtxtst_NUMBERS

Text that is numeric and that should be read in numeric style.

vtxtst_QUESTION

A question, such as "Do you want to save the file?"

vtxtst_READING

Text that is being read from a document, such as an e-mail message.

vtxtst_SPREADSHEET

Text that is being read from a spreadsheet, such as columns of numbers.

vtxtst_STATEMENT

A neutral, informative statement, such as "You have new messages." This is the default type of speech.

vtxtst_WARNING

A warning, such as "Your printer is out of paper."


The priority can be one of these values:

Value

Description

vtxtsp_VERYHIGH

Play the text immediately, interrupting text that is currently being spoken, if any. The interrupted text resumes playing as soon as the very high priority text is finished, although the interrupted text may not be correctly synchronized.

vtxtsp_HIGH

Play the text as soon as possible, after text that is currently being spoken but before any other text in the queue.

vtxtsp_NORMAL

Add the text to the end of the queue. This is the default priority.


The Speak method calls the IVoiceText::Speak member function to speak the text.