VoiceRecResult

Metreos.Types.VoiceRec.VoiceRecResult

Description 

Summary

The VoiceRecResult allows a developer easy access to the score, meaning, and interpretation of a result from Nuance OSR.

Usage

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;
}


Remarks

None.

No Parseable Inputs

No Public Methods

Accessible Public Properties
Property Name.NET TypeDescription
ScoreSystem.Int32The score of the result (1 to 100).
MeaningSystem.StringThe meaning of the result.
InterpretationSystem.StringThe interpretation XML element of the result.