Freigeben über


Supporting non-English Resources

  Microsoft Speech Technologies Homepage

This topic describes the manifest file entries that are created by the Speech Web Application Project Wizard for non-English language applications, and explains how to modify the manifest file to support a multi-language application.

For more information about the entries in the manifest file, see Manifest File Elements.

Specifying a Language

When developing a new application, you use the New Project wizard to specify an application language. (See Using the Project Wizard to Set the Application Language.) Only one initial language may be selected.

The language chosen can be any of the languages supported by the Microsoft Speech Application SDK Version 1.1. (See Installing or Removing a Language Pack.)

The wizard creates initial entries for the application manifest file based on the language selected. For example, if French is the specified language, the default manifest file includes entries such as these:

   <application name="SpeechWebApplication_French" frontpage="Default.aspx">
     <resourceset type="fr-CA_TelephonyRecognizer">
       <resource src = "Grammars/Library.grxml"/>
       <resource src = "Grammars/SpeechWebApplication_French.grxml"/>
       <!-- Add other grammar resources here -->
    </resourceset>

Filenames may vary depending on what is specified when running the wizard.

Adding Support for Additional Languages

When adding entries for additional language resources, ensure that the value for the resourceset type element contains the correct recognition or prompt engine for the language of the specified application resources.

For example, when specifying Spanish grammar files to preload, specify the Spanish recognition engine:

<resourceset type="es-US_TelephonyRecognizer">
</resourceset>

Then simply enter the Spanish grammar file name as the value for the resource src element:

<resource src="My_SpanishGrammar.grxml"/>
</resourceset>

Sample Entries

The default manifest file also includes a comment section that you can refer to when specifying additional resources in a multi-language application.

<!-- The following section provides example manifest entries to use when
   specifying resources for multi-language applications. 

    U.S. English
    <resourceset type="TelephonyRecognizer">
      <resource src="Add your U.S. English grammar resource here"/>
    </resourceset>
    
    <resourceset type="Voice">
      <resource src ="Add your U.S. English prompt resource here"/>   
    </resourceset>
 
    U.S. Spanish
    <resourceset type="es-US_TelephonyRecognizer">
       <resource src="Add your U.S. Spanish grammar resource here"/>
    </resourceset>
    
    <resourceset type="es-US_Voice">
       <resource src="Add your U.S. Spanish prompt resource here"/>
    </resourceset>

    Canadian French
    <resourceset type="fr-CA_TelephonyRecognizer">
       <resource src="Add your Canadian French grammar resource here"/>
    </resourceset>
    
    <resourceset type="fr-CA_Voice">
       <resource src="Add your Canadian French prompt resource here"/>
    </resourceset>

See Also

About Application Manifest Files | Deploying Speech Applications | Managing Application Resources | Components of Application Deployment