This documentation is archived and is not being maintained.

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)

'Usage
Dim Text As String
Dim SpeakAsync As Object
Dim SpeakXML As Object
Dim Purge As Object
Dim speech1 As Speech
speech1.Speak(Text, SpeakAsync, SpeakXML, Purge)

void Speak(
	[In] string Text, 
	[In, Optional] object SpeakAsync, 
	[In, Optional] object SpeakXML, 
	[In, Optional] object Purge
);
public void Speak(
	/*in*/System.String Text, 
	/*in*/System.Object SpeakAsync, 
	/*in*/System.Object SpeakXML, 
	/*in*/System.Object Purge
);
function Speak(
	 Text : String, 
	 SpeakAsync : Object, 
	 SpeakXML : Object, 
	 Purge : Object
);

Parameters

Text

Required String. The text to be spoken.

SpeakAsync

Optional 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

Optional 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

Optional 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: