Bewerken

Delen via


Speech.Speak(String, Object, Object, Object) Method

Definition

Microsoft Excel plays back the specified text string.

public void Speak (string Text, object SpeakAsync, object SpeakXML, object Purge);
Public Sub Speak (Text As String, Optional SpeakAsync As Object, Optional SpeakXML As Object, Optional Purge As Object)

Parameters

Text
String

Required String. The text to be spoken.

SpeakAsync
Object

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
Object

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
Object

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.

Applies to