Configuration without the Management Station
Ignore this section if using the Management Station. (The Management Station automatically creates and manages the configuration file described in this topic.)
Use Recognizer configuration files to override Nuance Recognizer defaults. (This is not the only way to configuration the recognizer. See Configuring Recognizer.)
- Create one User-nrsxx.xml for each instance of the Nuance recognition service (where the xx matches the instance number). Create the file in the $NUANCE_DATA_DIR/system/config/ folder.
- Specify the file when starting the service (see Starting the Nuance recognition service).
Note: You can modify the file at any time, but you must restart the recognition server for the changes to take effect.
Here is a sample User-nrsxx.xml with a single parameter:
<?xml version="1.0"?>
<SWIrecConfig version="1.0.0">
<lang name="default">
<param name="swirec_disk_cache_enabled">
<value>1</value>
</param>
</lang>
</SWIrecConfig>
The header contains the XML declaration, XML stylesheet instruction, and the opening <SWIrecConfig> element. The header is fixed, and you must use them exactly as follows:
<?xml version="1.0"?>
<SWIrecConfig version="1.0.0">
The main body of a User-nrsxx.xml file consists of parameters and their values, listed in the default <lang> section:
<lang name="default">
<param name="swirec_extra_nbest_keys">
<value>SWI_meaning</value>
<value>SWI_literal</value>
<value>SWI_grammarName</value>
</param>
</lang>
Any incomplete paths in the User-nrsxx.xml file are relative to the %SWISRSDK% environment variable.
In addition to the main body, there can be language-specific sections (lang=langcode).
Each <lang> section indicates the language for which the parameter settings apply. The name is either “default”, or a language code indicating another installed language (for example, en-US for US English).
Section in User-nrsxx.xml |
Description |
---|---|
Lang=default |
Parameters override recognizer defaults. |
Lang=langcode |
Parameters override language-specific defaults. |