Class NoMatchDetails
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.NoMatchDetails
-
public class NoMatchDetails extends Object
Contains detailed information for NoMatch recognition results.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the objectstatic NoMatchDetailsfromResult(RecognitionResult result)Creates an instance of NoMatchDetails object for the NoMatch SpeechRecognitionResults.NoMatchReasongetReason()The reason why NoMatch is returned.StringtoString()Returns a String that represents the no match details.
-
-
-
Method Detail
-
fromResult
public static NoMatchDetails fromResult(RecognitionResult result)
Creates an instance of NoMatchDetails object for the NoMatch SpeechRecognitionResults.- Parameters:
result- The recognition result that has NoMatch returned in Reason.- Returns:
- The NoMatchDetails object being created.
-
close
public void close()
Explicitly frees any external resource attached to the object
-
getReason
public NoMatchReason getReason()
The reason why NoMatch is returned.- Returns:
- Specifies the reason for NoMatch.
-
-