NoMatchDetails Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.NoMatchDetails

public class NoMatchDetails

Contains detailed information for NoMatch recognition results.

Method Summary

Modifier and Type Method and Description
void close()

Explicitly frees any external resource attached to the object

static NoMatchDetails fromResult(RecognitionResult result)

Creates an instance of NoMatchDetails object for the NoMatch SpeechRecognitionResults.

NoMatchReason getReason()

The reason why NoMatch is returned.

java.lang.String toString()

Returns a String that represents the no match details.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

close

public void close()

Explicitly frees any external resource attached to the object

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.

getReason

public NoMatchReason getReason()

The reason why NoMatch is returned.

Returns:

Specifies the reason for NoMatch.

toString

public String toString()

Returns a String that represents the no match details.

Overrides:

NoMatchDetails.toString()

Returns:

A String that represents the no match details.

Applies to