Klasse Speaker::VoiceProfileClient

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

Klasse für VoiceProfileClient. Diese Klasse erstellt einen Sprachprofilclient zum Erstellen, Registrieren, Löschen und Zurücksetzen eines Sprachprofils. In Version 1.12.0 hinzugefügt.

Member

Eigenschaften

Syntax: public PropertyCollection & Properties;

Eine Auflistung von Eigenschaften und deren Werten, die für diesen VoiceProfileClient definiert sind.

~VoiceProfileClient

Syntax: public inline virtual ~VoiceProfileClient ( );

Destruktor.

CreateProfileAsync

Syntax: public inline std::future< std::shared_ptr< VoiceProfile > > CreateProfileAsync ( VoiceProfileType profileType , const std::string & locale );

Erstellen Sie ein Sprachprofil.

Parameter

  • profileType ein VoiceProfile-Typ.

  • locale ein Gebietsschema, z. B. "en-us"

Gibt zurück

Ein client-Objekt für ein intelligentes Zeiger-VoIP-Profil.

EnrollProfileAsync

Syntax: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > EnrollProfileAsync ( std::shared_ptr< VoiceProfile > profile , std::shared_ptr< Audio::AudioConfig > audioInput );

Registrieren Sie ein Sprachprofil.

Parameter

  • profile ein Sprachprofilobjekt.

  • audioInput Audioeingabe.

Gibt zurück

Ein intelligentes Zeiger-Umschlossenes Ergebnisobjekt für die Sprachprofilregistrierung.

DeleteProfileAsync

Syntax: public inline std::future< std::shared_ptr< VoiceProfileResult > > DeleteProfileAsync ( std::shared_ptr< VoiceProfile > profile );

Löschen sie ein Sprachprofil.

Parameter

  • profile ein Sprachprofilobjekt.

Gibt zurück

Ein intelligentes Zeiger-Umschlossenes Sprachprofil-Ergebnisobjekt.

ResetProfileAsync

Syntax: public inline std::future< std::shared_ptr< VoiceProfileResult > > ResetProfileAsync ( std::shared_ptr< VoiceProfile > profile );

Setzen Sie ein Sprachprofil zurück.

Parameter

  • profile ein Sprachprofilobjekt.

Gibt zurück

Ein intelligentes Zeiger-Umschlossenes Sprachprofil-Ergebnisobjekt.

RetrieveEnrollmentResultAsync

Syntax: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > RetrieveEnrollmentResultAsync ( const std::string & voiceProfileId , VoiceProfileType voiceProfileType );

Rufen Sie ein Registrierungsergebnis unter Angabe der ID und des Typs des VoIP-Profils ab.

Parameter

  • voiceProfileId Die VoiceProfile-ID.

  • voiceProfileType The VoiceProfileType.

Gibt zurück

Eine Zukunft des abgerufenen VoiceProfileEnrollmentResult.

RetrieveEnrollmentResultAsync

Syntax: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > RetrieveEnrollmentResultAsync ( constVoiceProfile & voiceProfile );

Rufen Sie ein Registrierungsergebnis unter Angabe des VoIP-Profils ab.

Parameter

  • voiceProfile ein Sprachprofilobjekt.

Gibt zurück

GetAllProfilesAsync

Syntax: public inline std::future< std::vector< std::shared_ptr< VoiceProfile > > > GetAllProfilesAsync ( VoiceProfileType voiceProfileType );

Ruft alle Profile mit dem angegebenen Typ ab.

Parameter

  • voiceProfileType The VoiceProfileType.

Gibt zurück

Eine Zukunft eines Vektors vorhandener VoiceProfiles.

GetActivationPhrasesAsync

Syntax: public inline std::future< std::shared_ptr< VoiceProfilePhraseResult > > GetActivationPhrasesAsync ( VoiceProfileType voiceProfileType , const std::string & locale );

Operator SPXVOICEPROFILECLIENTHANDLE

Syntax: public inline explicit operator SPXVOICEPROFILECLIENTHANDLE ( );

Intern. Expliziter Konvertierungsoperator.

Gibt zurück

Ein Handler.

FromConfig

Syntax: public inline static std::shared_ptr< VoiceProfileClient > FromConfig ( std::shared_ptr< SpeechConfig > speechConfig );

Erstellen Sie einen Sprachprofilclient aus einer Sprachkonfiguration.

Parameter

  • speechConfig Sprachkonfiguration.

Gibt zurück

Ein smarter Zeiger, umschlossener Clientzeiger für Das Sprachprofil.