swirec_max_search_time
Maximum CPU time for the search phase of recognition.
Value |
Integer. |
Default |
5000 (milliseconds) |
How to set |
Shown in precedence order (see Rules of parameter precedence): Set in the browser, using the Vendor-Specific-Parameters header in a RECOGNIZE or SET-PARAMS method. In a parameter grammar. In a grammar using a <meta> tag (see the text on recognition-time parameters in Parameters set in grammar files). In Management Station set on the Nuance recognition service. If not using Management Station, set in a Recognizer configuration file (User-nrsxx.xml). |
Usage |
Useful when an utterance or environmental situation results in excessive or unproductive use of CPU. For example, to protect all channels from a single channel that performs excessive searching. |
Performance |
Lower settings can reduce the total computation time, but might result in lower accuracy for some utterances. |
This parameter is sometimes adjusted when tuning an application where the computation on some utterances is too high. For large-vocabulary recognition, especially with longer utterances, Recognizer can spend a significant amount of time searching for the answer. You can use this parameter to limit the amount of processing searching for the answer.
Other scenarios where lower settings of this parameter are useful:
- For telephone calls with line noise or background noise. The noise can result in extended searching by Recognizer with little gains in accuracy.
- For environments with strict limits on the amount of CPU used for any single recognition event.
Recognizer stops searching when the maximum time is reached, and returns the SWIrec_STATUS_MAX_CPU_TIME status.
Browsers usually set this parameter in a RECOGNIZE request, and the parameter automatically reverts to the previous value after the recognition event. (Alternatively, browsers can use the SET-PARAMS method. See Configuring Recognizer with the browser.)
Vendor-Specific-Parameters: swirec_max_search_time=5000
Sample definition in a grammar file:
<meta name="swirec_max_search_time" content="5000"/>
Related parameters