PromptBuilder Constructor ()

Creates a new instance of the PromptBuilder class.

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

Syntax

'Declaration




Remarks

The default constructor initializes any fields to their default values.

Example

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="http://www.w3.org/2001/10/synthesis" xml:lang="en">
  Hello world!
</speak>

Platforms

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

Reference

PromptBuilder Class
PromptBuilder Members
Microsoft.Speech.Synthesis Namespace