PromptBuilder Constructor ()

Creates a new instance of the PromptBuilder class.

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




The default constructor initializes any fields to their default values.


The following example instantiates a new PromptBuilder class and adds a text string to it.

using Microsoft.Speech.Synthesis;

public void MySimpleText ()

    PromptBuilder builder = new PromptBuilder ();
    builder.AppendText("Hello world!");

The following markup shows the equivalent SSML:

<speak xmlns="" xml:lang="en">
  Hello world!


Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also


PromptBuilder Class
PromptBuilder Members
Microsoft.Speech.Synthesis Namespace