class RecognitionResult

Contains detailed information about result of a recognition operation.

Members

ResultId

Syntax: public const std::string & ResultId;

Unique result id.

Reason

Syntax: public const Speech::ResultReason & Reason;

Recognition reason.

Text

Syntax: public const std::string & Text;

Normalized text generated by a speech recognition engine from recognized input.

Properties

Syntax: public const PropertyCollection & Properties;

Collection of additional RecognitionResult properties.

~RecognitionResult

Syntax: public inline virtual ~RecognitionResult ( );

Virtual destructor.

Duration

Syntax: public inline uint64_t Duration ( ) const;

Duration of recognized speech in ticks. A single tick represents one hundred nanoseconds or one ten-millionth of a second.

Returns

Duration of recognized speech in ticks.

Offset

Syntax: public inline uint64_t Offset ( ) const;

Offset of the recognized speech in ticks. A single tick represents one hundred nanoseconds or one ten-millionth of a second.

Returns

Offset of the recognized speech in ticks.

Channel

Syntax: public inline uint32_t Channel ( ) const;

Index of the input audio channel where the speech was recognized. Numbering starts at zero.

Returns

Channel index.

CommitToken

Syntax: public inline uint32_t CommitToken ( ) const;

Inline commit: commit token that this result acknowledges, or 0 if this result is not a commit acknowledgment.

A non-zero value equals the token returned by a preceding PushAudioInputStream::Commit() call. Applications correlate commit requests and their acknowledgments via this field.

A Recognized event whose result has CommitToken != 0 and empty Text is a pure commit acknowledgment: the service segmented at the commit point but produced no recognition content.

Returns

Commit token, or 0 if not a commit acknowledgment.

operator SPXRESULTHANDLE

Syntax: public inline explicit operator SPXRESULTHANDLE ( );

Internal. Explicit conversion operator.

Returns

A handle.