Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

PromptBuilder.SetText Method (String)

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

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

Syntax

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

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

Parameters

Remarks

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

See Also

Reference

PromptBuilder Class

PromptBuilder Members

SetText Overload

Microsoft.Speech.Synthesis Namespace