class Speaker::SpeakerRecognitionResult

Represents speaker recognition result. Added in 1.12.0.

Members

ResultId

Syntax: public const std::string & ResultId;

Unique result id.

Reason

Syntax: public const ResultReason & Reason;

Reason of the speaker recognition result.

ProfileId

Syntax: public const std::string & ProfileId;

The profile id of the first verified/identified speaker. The rest of recognized speakers can be retrieved by parsing the json result string in the Properties.

Properties

Syntax: public const PropertyCollection & Properties;

Collection of additional properties.

SpeakerRecognitionResult

Syntax: public inline explicit SpeakerRecognitionResult ( SPXRESULTHANDLE hresult );

Creates a new instance using the provided handle.

Parameters

  • hresult Result handle.

operator SPXRESULTHANDLE

Syntax: public inline explicit operator SPXRESULTHANDLE ( );

Explicit conversion operator.

Returns

A handle.

~SpeakerRecognitionResult

Syntax: public inline ~SpeakerRecognitionResult ( );

Destructor.

GetScore

Syntax: public inline double GetScore ( ) const;

Returns a similarity score.

Returns

A float number indicating the similarity between input audio and targeted voice profile.This number is between 0 and 1. A higher number means higher similarity.< / returns>