Class SpeechRecognitionCanceledEventArgs

class SpeechRecognitionCanceledEventArgs
  : public SpeechRecognitionEventArgs

语音识别取消事件参数的类。

成员

原因

语法:public const CancellationReason & Reason;

取消结果的原因。

ErrorCode

语法:public const CancellationErrorCode & ErrorCode;

如果识别失败(原因 设置为“错误”),则错误代码。 如果 Reason 不是 Error,则 ErrorCode 设置为 NoError。 已在版本 1.1.0 中添加。

ErrorDetails

语法:public const std::string ErrorDetails;

如果识别失败(原因 设置为“错误”),则错误消息。

SpeechRecognitionCanceledEventArgs

语法:public inline explicit SpeechRecognitionCanceledEventArgs ( SPXEVENTHANDLE hevent );

构造 函数。

参数

  • hevent 事件句柄

~SpeechRecognitionCanceledEventArgs

语法:public inline virtual ~SpeechRecognitionCanceledEventArgs ( );