Compartir a través de


Creating a Speech Project

  Microsoft Speech Technologies Homepage

This topic is the first of seven tutorial topics covering tools in the Microsoft Speech Application SDK Version 1.1 (SASDK). For reference information on Microsoft Visual Studio .NET 2003, see the Visual Studio documentation set.

This sequence of tutorials demonstrates how to build a simple voice-only ASP.NET Web application using the SASDK. Specifically, the tutorials demonstrate building a Start page of an imaginary pizza ordering service, for use by voice-only Speech Application Language Tags (SALT) clients.

The procedures for creating the pizza ordering service application build on each other. Performing the procedures in sequence is therefore important.

Beginning the Speech Application

Begin your speech application by opening Visual Studio and creating a project for the application.

To create a speech application:

  1. In Visual Studio .NET 2003 on the File menu, point to New and then click Project.
  2. In the New Project dialog box, select Visual Basic Projects or Visual C# Projects from the left pane, depending on your coding preferences, and then select Speech Web Applications from the right pane.
  3. In the Location box, replace the proposed name with https://localhost/Tutorial. The proposed project name also changes to Tutorial. Click OK.
  4. The Speech Web Application Project Wizard appears. To create a speech application in a language other than English, click Application Settings in the left pane and use the Language drop-down list to select any of the installed languages. This tutorial develops a speech application using the default language setting, U.S. English. For more information, see Developing Speech Applications in Other Languages.
  5. Click Application Resources in the left pane and change Grammar file name to PizzaOrder.grxml, and Prompt project name to PizzaPrompts, as shown in the illustration. Application Wizard
  6. Click Finish. Visual Studio now creates the elements of your project.

This creates a voice-only Web application project, with an application Start page named Default.aspx. It also enables Telephony Application Simulator for the project, and copies the default voice mode grammar library into the project. In addition, it creates an application manifest for use in deploying your application.

In the directory you have chosen for Visual Studio projects, which by default is the Visual Studio Projects folder in My Documents, you will find the following files, assuming you chose a Visual Basic project:

Tutorial\Tutorial.sln
Tutorial\PizzaPrompts
Tutorial\PizzaPrompts\PizzaPrompts.prproj
Tutorial\PizzaPrompts\Prompts.promptdb

In your public Web directory (on drive C in the following example), the following files are located:

C:\Inetpub\wwwroot\Tutorial\AssemblyInfo.vb
C:\Inetpub\wwwroot\Tutorial\default.aspx
C:\Inetpub\wwwroot\Tutorial\default.aspx.resx
C:\Inetpub\wwwroot\Tutorial\default.aspx.vb
C:\Inetpub\wwwroot\Tutorial\Global.asax
C:\Inetpub\wwwroot\Tutorial\Global.asax.resx
C:\Inetpub\wwwroot\Tutorial\Global.asax.vb
C:\Inetpub\wwwroot\Tutorial\Manifest.xml
C:\Inetpub\wwwroot\Tutorial\Styles.css (Visual Basic projects only)
C:\Inetpub\wwwroot\Tutorial\Tutorial.vbproj
C:\Inetpub\wwwroot\Tutorial\Tutorial.vbproj.webinfo
C:\Inetpub\wwwroot\Tutorial\Web.config
C:\Inetpub\wwwroot\Tutorial\bin
C:\Inetpub\wwwroot\Tutorial\Grammars
C:\Inetpub\wwwroot\Tutorial\Grammars\Library.grxml
C:\Inetpub\wwwroot\Tutorial\Grammars\PizzaOrder.grxml
C:\Inetpub\wwwroot\Tutorial\Prompts
To See
Go to the next step Creating Grammars