class Speaker::SpeakerRecognitionCancellationDetails

Represents the details of a canceled speaker recognition result.

Members

Reason

Syntax: public const CancellationReason & Reason;

The reason the result was canceled.

ErrorCode

Syntax: public const CancellationErrorCode & ErrorCode;

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

ErrorDetails

Syntax: public const std::string ErrorDetails;

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

FromResult

Syntax: public inline static std::shared_ptr< SpeakerRecognitionCancellationDetails > FromResult ( std::shared_ptr< SpeakerRecognitionResult > result );

Creates an instance of SpeakerRecognitionCancellationDetails object for the canceled speaker recognition result.

Parameters

  • result The result that was canceled.

Returns

A shared pointer to SpeakerRecognitionCancellationDetails.