共用方式為


SpeechRecognitionCanceledEventArgs Class

Definition

Contains payload of speech recognition canceled result events.

public sealed class SpeechRecognitionCanceledEventArgs : Microsoft.CognitiveServices.Speech.SpeechRecognitionEventArgs
type SpeechRecognitionCanceledEventArgs = class
    inherit SpeechRecognitionEventArgs
Public NotInheritable Class SpeechRecognitionCanceledEventArgs
Inherits SpeechRecognitionEventArgs
Inheritance

Properties

ErrorCode

The error code in case of an unsuccessful recognition (Reason is set to Error). If Reason is not Error, ErrorCode returns NoError. Added in 1.1.0

ErrorDetails

The error message in case of an unsuccessful recognition (Reason is set to Error).

Offset

Represents the message offset in ticks (100 nanoseconds).

(Inherited from RecognitionEventArgs)
Reason

The reason the recognition was canceled.

Result

Specifies the recognition result.

(Inherited from SpeechRecognitionEventArgs)
SessionId

Represents the session identifier.

(Inherited from SessionEventArgs)

Methods

ToString()

Returns a string that represents the speech recognition result event.

Applies to