Class RecognitionResult

    • Constructor Detail

      • RecognitionResult

        protected RecognitionResult​(long result)
        Internal constructor for creating a RecognitionResult from a native handle.
        Parameters:
        result - The native handle.
    • Method Detail

      • getResultId

        public String getResultId()
        Specifies the result identifier.
        Returns:
        Specifies the result identifier.
      • getReason

        public ResultReason getReason()
        Specifies reason the result was created.
        Returns:
        Specifies reason of the result.
      • getText

        public String getText()
        Presents the recognized text in the result.
        Returns:
        Presents the recognized text in the result.
      • getDuration

        public BigInteger getDuration()
        Duration of recognized speech in 100nsec increments.
        Returns:
        Duration of recognized speech in 100nsec increments.
      • getOffset

        public BigInteger getOffset()
        Offset of recognized speech in 100nsec increments.
        Returns:
        Offset of recognized speech in 100nsec increments.
      • getProperties

        public PropertyCollection getProperties()
        The set of properties exposed in the result.
        Returns:
        The set of properties exposed in the result.
      • close

        public void close()
        Explicitly frees any external resource attached to the object
        Specified by:
        close in interface AutoCloseable
      • getImpl

        public SafeHandle getImpl()
        Returns the recognition result implementation.
        Returns:
        The implementation of the result.