PromptBuilder Constructor ()
.NET Framework (current version)
Creates a new instance of the PromptBuilder class.
Assembly: System.Speech (in System.Speech.dll)
The following example creates a new PromptBuilder instance and adds a text string to it.
using System.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):
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"> Hello world! </speak>
.NET Framework
Available since 3.0
Available since 3.0
Show: