Share via


PromptBuilder Constructor ()

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Creates a new instance of the PromptBuilder class.

Namespace: Microsoft.SpeechServer.Synthesis
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)

Syntax

'Declaration
Public Sub New
public PromptBuilder ()

Remarks

The default constructor initializes any fields to their default values.

Example

using Microsoft.SpeechServer.Synthesis;
using System.Globalization;
. . .
        private void statementActivity1_TurnStarting(object sender, TurnStartingEventArgs e)
        {
            //A PromptBuilder for the default culture
            PromptBuilder pbENUS = new PromptBuilder();

            //A PromptBuilder for a non-default culture
            PromptBuilder pbESUS = new PromptBuilder(new CultureInfo("es-US"));

            pbENUS.AppendText("For English, press seven. ");
            statementActivity1.MainPrompt.AppendPromptBuilder(pbENUS);

            pbESUS.AppendText("Para espa??ol, marque ocho. ");
            statementActivity1.MainPrompt.AppendPromptBuilder(pbESUS);
        }

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

Windows Server 2003

See Also

Reference

PromptBuilder Class
PromptBuilder Members
Microsoft.SpeechServer.Synthesis Namespace