Share via


Using the Project Wizard to Add Grammar Files to a New Project

  Microsoft Speech Technologies Homepage

Use the Speech Web Application Project Wizard to add a library grammar and an empty grammar file to a new project. The library grammar contains over 150 rules for recognizing times, dates, numbers, and other common utterances. The empty grammar contains a single empty rule and has the same name as the new project.

The Project Wizard sets the path for the grammar files to wwwroot\<project>\Grammars\<grammar file>.

To add grammar files

  1. In Visual Studio .NET 2003, select New on the File menu, and then click Project.
  2. In the New Project dialog box, select either Visual C# or Visual Basic in the Project Type pane, click Speech Web Application in the Templates pane, enter a meaningful name for the project in the Location box, and then click OK.
  3. In the Speech Web Application Project Wizard, click Application Resources in the left pane.
  4. By default, both Add default grammar library and Create new grammar library are selected. To choose to not add one or both of these files, clear the check box.
  5. To edit the default file name for the new grammar library, edit the text in the Grammar file name text box.

Note  The wizard uses the file name specified here to add a corresponding entry to the application manifest file. For more information, see the topic Manifest File Elements.

See Also

Creating a New Application | Managing Application Resources | Supporting non-English Resources