sınıf Konuşmacısı::VoiceProfileClient
class Speaker::VoiceProfileClient
: public std::enable_shared_from_this< VoiceProfileClient >
VoiceProfileClient sınıfı. Bu sınıf, ses profili oluşturmak, kayıt yapmak, silmek ve sıfırlamak için ses profili istemcisi oluşturur. Sürüm 1.12.0'da eklendi.
Üyeler
Özellikler
Söz dizimi: public PropertyCollection & Properties;
Bu VoiceProfileClient için tanımlanan özellikler ve değerleri koleksiyonu.
~VoiceProfileClient
Söz dizimi: public inline virtual ~VoiceProfileClient ( );
Yıkıcı.
CreateProfileAsync
Söz dizimi: public inline std::future< std::shared_ptr< VoiceProfile > > CreateProfileAsync ( VoiceProfileType profileType , const std::string & locale );
Ses Profili oluşturun.
Parametreler
profileType
Bir VoiceProfile türü.locale
bir yerel ayar, örneğin "tr-tr"
Döndürülenler
Akıllı işaretçi sarmalanmış ses profili istemci nesnesi.
EnrollProfileAsync
Söz dizimi: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > EnrollProfileAsync ( std::shared_ptr< VoiceProfile > profile , std::shared_ptr< Audio::AudioConfig > audioInput );
Ses Profili kaydetme.
Parametreler
profile
bir ses profili nesnesi.audioInput
bir ses girişi.
Döndürülenler
Akıllı işaretçi sarmalanmış ses profili kayıt sonuç nesnesi.
DeleteProfileAsync
Söz dizimi: public inline std::future< std::shared_ptr< VoiceProfileResult > > DeleteProfileAsync ( std::shared_ptr< VoiceProfile > profile );
Ses Profilini silme.
Parametreler
profile
bir ses profili nesnesi.
Döndürülenler
Akıllı işaretçi sarmalanmış ses profili sonuç nesnesi.
ResetProfileAsync
Söz dizimi: public inline std::future< std::shared_ptr< VoiceProfileResult > > ResetProfileAsync ( std::shared_ptr< VoiceProfile > profile );
Ses Profilini sıfırlayın.
Parametreler
profile
bir ses profili nesnesi.
Döndürülenler
Akıllı işaretçi sarmalanmış ses profili sonuç nesnesi.
RetrieveEnrollmentResultAsync
Söz dizimi: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > RetrieveEnrollmentResultAsync ( const std::string & voiceProfileId , VoiceProfileType voiceProfileType );
Ses Profilinin kimliği ve türüne göre bir kayıt sonucu alın.
Parametreler
voiceProfileId
VoiceProfile Kimliği.voiceProfileType
The VoiceProfileType.
Döndürülenler
Alınan VoiceProfileEnrollmentResult'un geleceği.
RetrieveEnrollmentResultAsync
Söz dizimi: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > RetrieveEnrollmentResultAsync ( constVoiceProfile & voiceProfile );
Ses Profili'ni göz önünde bulundurarak bir kayıt sonucu alın.
Parametreler
voiceProfile
bir ses profili nesnesi.
Döndürülenler
GetAllProfilesAsync
Söz dizimi: public inline std::future< std::vector< std::shared_ptr< VoiceProfile > > > GetAllProfilesAsync ( VoiceProfileType voiceProfileType );
Verilen türe sahip tüm profilleri alın.
Parametreler
voiceProfileType
The VoiceProfileType.
Döndürülenler
Eski VoiceProfiles vektörünün geleceği.
GetActivationPhrasesAsync
Söz dizimi: public inline std::future< std::shared_ptr< VoiceProfilePhraseResult > > GetActivationPhrasesAsync ( VoiceProfileType voiceProfileType , const std::string & locale );
SPXVOICEPROFILECLIENTHANDLE işleci
Söz dizimi: public inline explicit operator SPXVOICEPROFILECLIENTHANDLE ( );
Iç. Açık dönüştürme işleci.
Döndürülenler
Bir tutamaç.
FromConfig
Söz dizimi: public inline static std::shared_ptr< VoiceProfileClient > FromConfig ( std::shared_ptr< SpeechConfig > speechConfig );
Konuşma yapılandırmasından Ses Profili İstemcisi oluşturun.
Parametreler
speechConfig
Konuşma yapılandırması.
Döndürülenler
Akıllı işaretçi kaydırılmış ses profili istemci işaretçisi.