Share via


Note

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

PromptBuilder.AppendTextWithHint Method (String, String)

Appends text to the PromptBuilder object and a String that specifies the content type of the text.

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

Syntax

'Declaration
Public Sub AppendTextWithHint ( _
    textToSpeak As String, _
    sayAs As String _
)
'Usage
Dim instance As PromptBuilder
Dim textToSpeak As String
Dim sayAs As String

instance.AppendTextWithHint(textToSpeak, _
    sayAs)
public void AppendTextWithHint(
    string textToSpeak,
    string sayAs
)

Parameters

  • textToSpeak
    Type: System.String
    A string containing the text to be spoken.

Remarks

You can use this method to specify a content type that is not included in the SayAs enumeration. However, the TTS engine must support the parameter that you specify.

See Also

Reference

PromptBuilder Class

PromptBuilder Members

AppendTextWithHint Overload

Microsoft.Speech.Synthesis Namespace