Script Variables Used in the Example Generic Recognition Script
Table lists the variables, with the exception of the prompt variables, that are specific to the generic recognition steps.
|
Variable Name |
Variable Type |
Initialized Value |
Function/Description |
|---|---|---|---|
|
rule_Name_or_Context |
String |
"Securities\securities" |
The name of the grammar file to be used in the recognition. |
|
confLevel |
int |
The confidence threshold. This determines how closely a result must match the utterance before it is returned by the recognizer. | |
|
interpIndex |
int |
0 |
The index used to select the interpretation in the currently selected result. |
|
maxResult |
int |
5 |
Contains the maximum number of results that can be returned by the recognition. |
|
numinterp |
int |
0 |
Contains the number of interpretations in the currently selected result. |
|
resultCount |
int |
number of results |
The number of results in the result collection returned by the recognition. |
|
resultIndex |
int |
0 |
Used to select the specific result from the result collection. |
|
securitySlotValue |
String |
" " |
A string variable to receive the value from the slot named "security". This is the name of a stock. |
|
utterance |
String |
" " |
A string variable to receive the utterance for each result. |