swirec_max_cpu_time
Maximum CPU time used to recognize an answer.
Value |
Integer |
Default |
20000 (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 |
Occasionally used to limits the amount of processing for large-vocabulary recognition, especially with longer utterances. |
Performance |
Higher settings risk higher computation requirements while lower settings can mean lower accuracy rates for some utterances. Nuance recommends keeping the default setting unless computation on some utterances is too high. |
The Recognizer can use a significant amount of CPU time while searching a large vocabulary with long utterances. This parameter limits CPU time spent in all phases of recognition. The related swirec_max_search_time parameter limits CPU time spent in the search phase only.
If the max CPU time is reached, The Recognizer stops without results 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_cpu_time=20000
Sample definition in a grammar file:
<meta name="swirec_max_cpu_time" content="20000"/>
Related parameters