resource Element
In manifest.xml specifies the URL of a resource to preload and cache for an ASP.NET Speech application.
<manifest>
<application>
<resourceset>
<resource>
<resource>
src="the URL of a resource in an ASP.NET Speech application"
</resource>
Required Attribute
Attribute | Description |
---|---|
src | Resource URL. |
Remarks
Default values for most manifest elements are pre-populated with file names and options specified when running the Speech Web Application Wizard. These include application name, frontpage, and src attribute. Providing meaningful names when running the wizard helps the system administrator identify application resources later, in the deployment environment.
For more information, see:
Using the Project Wizard to Add Grammar Files to a New Project
Using the Project Wizard to Add a Prompt Project
Additionally, the file is pre-populated with an entry (resourceset element) for each type of speech engine that might be used by the application: TelephonyRecognizer or MultiModalRecognizer for recognition engines, and Voice for prompt, or speech output engines.
The values for resourceset element correspond to engine configuration settings in the Microsoft Speech Server (MSS) environment. When the application is deployed, these entries must match the configuration settings or the application may not run as expected. As shown in the following example, separate resource entries are required for the two resourceset categories: speech recognition and TTS.
Example
The following example specifies a prompt database and grammar files for a Spanish (United States) speech application.
<manifest>
<application>
<resourceset type="es-US_TelephonyRecognizer">
<resource src="Grammars/Library.grxml">
<resource src="Grammars/SpanishGrammar.grxml">
</resourceset>
<resourceset type="es-US_Voice">
<resource src="Prompts/SpanishPrompts.prompts">
</resourceset>
</application>
</manifest>