Not Serializable
Description
The VoiceRecResult allows a developer easy access to the score, meaning, and interpretation of a result from Nuance OSR.
The VoiceRecResult operation allows one to determine the score, meaning, and interpretation of a result from Nuance OSR. Score is the confidence score, rated 1 - 100. Meaning in the textual meaning of a match, as described by the grammar. Interpretation is an XML element returned for this result; it maps to the interpretation tag returned in the actual result form Nuance OSR. It is provided because it can contain additional information useful when interpreting the results for a VoiceRecognition action.
Example 42.1. Logging the properties of a VoiceRecResult
public static string Execute(Metreos.Types.VoiceRec.VoiceRecResult result, LogWriter log)
{
int score = result.Score;
string meaning = result.Meaning;
string interpretation = result.Interpretation;
log.Write(TraceLevel.Info, "Score: {0}, Meaning: {1}, Interpretation: {2}", score, meaning, interpretation);
return String.Empty;
}
None.
No Parseable Inputs
No Public Methods
| Property Name | .NET Type | Description |
|---|---|---|
| Score | System.Int32 | The score of the result (1 to 100). |
| Meaning | System.String | The meaning of the result. |
| Interpretation | System.String | The interpretation XML element of the result. |