Class NoMatchDetails


  • public class NoMatchDetails
    extends Object
    Contains detailed information for NoMatch recognition results.
    • 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.
      • toString

        public String toString()
        Returns a String that represents the no match details.
        Overrides:
        toString in class Object
        Returns:
        A String that represents the no match details.