SetText Method (String)

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Replaces the current content in a PromptBuilder object with a string.

Namespace:  Microsoft.Speech.Synthesis
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

Visual Basic (Declaration)
Public Sub SetText ( _
	textToSpeak As String _
)
Visual Basic (Usage)
Dim instance As PromptBuilder
Dim textToSpeak As String

instance.SetText(textToSpeak)
C#
public void SetText(
	string textToSpeak
)

Parameters

textToSpeak
Type: System..::..String

The new content for the PromptBuilder object.

Remarks

This method calls ClearContent()()()() and then AppendText(String), using textToSpeak as the string.

See Also