Share via


Create Custom Pronunciations

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.

Use custom application lexicon (.cal) files to customize recognized pronunciations in speech applications running on Speech Server. Lexicons are supported by Speech Grammar Editor and Conversational Grammar Builder.

Creating Custom Pronunciations

Use a custom application lexicon file to store custom pronunciations of words that appear in Speech Grammar Editor and Conversational Grammar Builder grammars.

Adding a Custom Application Lexicon

When a speech application is created, a custom application lexicon (.cal) file is added by default to the %MyDocuments%\Visual Studio 2005\MyApplicationName\ MyApplicationName\Lexicons folder.

To add a new lexicon file

  1. In Microsoft Visual Studio 2005, open a Speech Server project.

  2. In Solution Explorer, right-click the speech project, click Add, and then click New Item.

  3. In the Add New Item dialog box, select Custom Application Lexicon File, and then click Add.

Creating a Reference to a Lexicon

To create a reference from a Conversational Grammar Builder grammar to a lexicon, see Create Speech Server Grammars with Conversational Grammar Builder.

To set the Lexicon property in a Speech Grammar Editor grammar

  1. In Solution Explorer, double-click a Speech Grammar Editor grammar.

  2. In Grammar Explorer, select the grammar file.

  3. In the Properties window, locate the Lexicon property, and then enter the custom application lexicon URI.

Editing a Custom Application Lexicon

To edit a lexicon, open Pronunciation Editor in Conversational Grammar Builder or Speech Grammar Editor.

To open Pronunciation Editor with Conversational Grammar Builder

  • In Conversational Grammar Builder, right-click a word in the Keyword Phrase pane, and then click Edit custom pronunciation.

To open Pronunciation Editor with Speech Grammar Editor

  1. In Speech Grammar Editor, select a Phrase element.

  2. In the Properties window, select the Pronunciation property, and then click the browse (...) button.

Building a Custom Application Lexicon

To build a lexicon file, build the solution.

See Also

Other Resources

Use Conversational Grammar Builder to Create Grammars
Use Speech Grammar Editor to Create Grammars