class Speaker::SpeakerRecognizer

class Speaker::SpeakerRecognizer
  : public std::enable_shared_from_this< SpeakerRecognizer >

Perform speaker recognition. Added in version 1.12.0.

Members

Properties

Syntax: public PropertyCollection & Properties;

A collection of properties and their values defined for this SpeakerRecognizer.

~SpeakerRecognizer

Syntax: public inline virtual ~SpeakerRecognizer ( );

Destructor.

RecognizeOnceAsync

Syntax: public inline std::future< std::shared_ptr< SpeakerRecognitionResult > > RecognizeOnceAsync ( std::shared_ptr< SpeakerVerificationModel > model );

Verify the speaker in the verification model.

Parameters

  • model A shared smart pointer of a speaker verficiation model.

Returns

A smart pointer wrapped speaker recognition result future.

RecognizeOnceAsync

Syntax: public inline std::future< std::shared_ptr< SpeakerRecognitionResult > > RecognizeOnceAsync ( std::shared_ptr< SpeakerIdentificationModel > model );

Identify the speakers in the Speaker Identification Model.

Parameters

  • model A shared smart pointer of a speaker identification model.

Returns

A smart pointer wrapped speaker recognition result future.

FromConfig

Syntax: public inline static std::shared_ptr< SpeakerRecognizer > FromConfig ( std::shared_ptr< SpeechConfig > speechconfig , std::shared_ptr< Audio::AudioConfig > audioInput );

Create a speaker recognizer from a speech config and audio config.

Parameters

  • speechconfig A shared smart pointer of a speech config.

  • audioInput A shared smart pointer of a audio config.

Returns

A smart pointer wrapped speaker recognizer pointer.