Note

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

PromptBuilder.SetText Method (String, Object[])

Replaces the current content in a PromptBuilder object with a string and specifies formatting for the contents of the string.

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

Syntax

'Declaration
Public Sub SetText ( _
    textToSpeak As String, _
    ParamArray args As Object() _
)
'Usage
Dim instance As PromptBuilder
Dim textToSpeak As String
Dim args As Object()

instance.SetText(textToSpeak, args)
public void SetText(
    string textToSpeak,
    params Object[] args
)

Parameters

  • args
    Type: []
    Objects that determine the formatting of the string specified by textToSpeak.

Remarks

This method calls ClearContent() and then AppendText(String, []). The SetText(String, []) method uses the object array specified by args as parameters to Format().

See Also

Reference

PromptBuilder Class

PromptBuilder Members

SetText Overload

Microsoft.Speech.Synthesis Namespace