class Speaker ::VoiceProfileClient

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

Classe pour VoiceProfileClient. Cette classe crée un client de profil vocal pour la création, l’inscription, la suppression et la réinitialisation d’un profil vocal. Ajouté dans la version 1.12.0.

Membres

Propriétés

Syntaxe : public PropertyCollection & Properties;

Collection de propriétés et leurs valeurs définies pour ce VoiceProfileClient.

~VoiceProfileClient

Syntaxe : public inline virtual ~VoiceProfileClient ( );

Destructeur.

CreateProfileAsync

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

Créez un profil vocal.

Paramètres

  • profileType type VoiceProfile.

  • locale un paramètre régional, par exemple « en-us »

Retours

Objet client de profil vocal encapsulé d’un pointeur intelligent.

EnrollProfileAsync

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

Inscrire un profil vocal.

Paramètres

  • profile un objet de profil vocal.

  • audioInput une entrée audio.

Retours

Objet de résultat d’inscription de profil vocal encapsulé d’un pointeur intelligent.

DeleteProfileAsync

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

Supprimer un profil vocal.

Paramètres

  • profile un objet de profil vocal.

Retours

Objet de résultat de profil vocal encapsulé d’un pointeur intelligent.

ResetProfileAsync

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

Réinitialiser un profil vocal.

Paramètres

  • profile un objet de profil vocal.

Retours

Objet de résultat de profil vocal encapsulé d’un pointeur intelligent.

RetrieveEnrollmentResultAsync

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

Récupérez un résultat d’inscription en fonction de l’ID et du type du profil vocal.

Paramètres

  • voiceProfileId ID VoiceProfile.

  • voiceProfileType The VoiceProfileType.

Retours

Futur de VoiceProfileEnrollmentResult récupéré.

RetrieveEnrollmentResultAsync

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

Récupérez un résultat d’inscription en fonction du profil vocal.

Paramètres

  • voiceProfile un objet de profil vocal.

Retours

GetAllProfilesAsync

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

Obtenez tous les profils ayant le type donné.

Paramètres

  • voiceProfileType The VoiceProfileType.

Retours

Avenir d’un vecteur de VoiceProfiles existant.

GetActivationPhrasesAsync

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

opérateur SPXVOICEPROFILECLIENTHANDLE

Syntaxe : public inline explicit operator SPXVOICEPROFILECLIENTHANDLE ( );

Internes. Opérateur de conversion explicite.

Retours

Handle.

FromConfig

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

Créez un client de profil vocal à partir d’une configuration vocale.

Paramètres

  • speechConfig Configuration vocale.

Retours

Pointeur de client de profil vocal encapsulé d’un pointeur intelligent.