Creates a new instance of the PromptBuilder class.
Namespace:
Microsoft.Speech.Synthesis
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New |
Visual Basic (Usage) |
---|
Dim instance As New PromptBuilder() |
C# |
---|
public PromptBuilder() |
Examples
The following example creates a new PromptBuilder instance and adds a text string to it.
C# | Copy Code |
---|---|
using Microsoft.Speech.Synthesis; public void MySimpleText () { PromptBuilder builder = new PromptBuilder (); builder.AppendText("Hello world!"); } |
The following markup shows the equivalent in Speech Synthesis Markup Language (SSML), (xml:lang is a required attribute of the speak element):
Copy Code | |
---|---|
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"> Hello world! </speak> |