Speech.Speak Method
Microsoft Excel plays back the specified text string.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub Speak ( _
Text As String, _
SpeakAsync As Object, _
SpeakXML As Object, _
Purge As Object _
)
'Usage
Dim instance As Speech
Dim Text As String
Dim SpeakAsync As Object
Dim SpeakXML As Object
Dim Purge As Object
instance.Speak(Text, SpeakAsync, SpeakXML, _
Purge)
void Speak(
string Text,
Object SpeakAsync,
Object SpeakXML,
Object Purge
)
Parameters
Text
Type: System.StringRequired String. The text to be spoken.
SpeakAsync
Type: System.ObjectOptional Object. True will cause the Text to be spoken asynchronously (the method will not wait for the Text to be spoken). False will cause the Text to be spoken synchronously (the method waits for the Text to be spoken before continuing). The default is False.
SpeakXML
Type: System.ObjectOptional Boolean. True will cause the Text to be interpreted as XML. False will cause the Text not to be interpreted as XML, so any XML tags will be read and not interpreted. The default is False.
Purge
Type: System.ObjectOptional Object. True will cause current speech to be terminated and any buffered text to be purged before Text is spoken. False will not cause the current speech to be terminated and will not purge the buffered text before Text is spoken. The default is False.