PromptBuilder Constructor ()


Creates a new instance of the PromptBuilder class.

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

public PromptBuilder()

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="" xml:lang="en-US">
  Hello world!

.NET Framework
Available since 3.0
Return to top