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