pembicara kelas::VoiceProfileClient

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

Kelas untuk VoiceProfileClient. Kelas ini membuat klien profil suara untuk membuat, melakukan pendaftaran, menghapus, dan mengatur ulang profil suara. Ditambahkan dalam versi 1.12.0.

Anggota

Properti

Sitnaksis: public PropertyCollection & Properties;

Kumpulan properti dan nilainya yang ditentukan untuk VoiceProfileClient ini.

~VoiceProfileClient

Sitnaksis: public inline virtual ~VoiceProfileClient ( );

Destruktor.

CreateProfileAsync

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

Buat Profil Suara.

Parameter

  • profileType jenis VoiceProfile.

  • locale lokal, misalnya "en-us"

Mengembalikan

Penunjuk cerdas membungkus objek klien profil suara.

EnrollProfileAsync

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

Mendaftarkan Profil Suara.

Parameter

  • profile objek profil suara.

  • audioInput Input audio.

Mengembalikan

Objek hasil pendaftaran profil suara yang dibungkus penunjuk cerdas.

DeleteProfileAsync

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

Menghapus Profil Suara.

Parameter

  • profile objek profil suara.

Mengembalikan

Penunjuk cerdas membungkus objek hasil profil suara.

ResetProfileAsync

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

Mengatur ulang Profil Suara.

Parameter

  • profile objek profil suara.

Mengembalikan

Penunjuk cerdas membungkus objek hasil profil suara.

RetrieveEnrollmentResultAsync

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

Ambil hasil pendaftaran yang diberikan id dan jenis Profil Suara.

Parameter

  • voiceProfileId Id VoiceProfile.

  • voiceProfileType The VoiceProfileType.

Mengembalikan

Masa depan VoiceProfileEnrollmentResult yang diambil.

RetrieveEnrollmentResultAsync

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

Ambil hasil pendaftaran yang diberikan Profil Suara.

Parameter

  • voiceProfile objek profil suara.

Mengembalikan

GetAllProfilesAsync

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

Dapatkan semua profil yang memiliki jenis yang diberikan.

Parameter

  • voiceProfileType The VoiceProfileType.

Mengembalikan

Masa depan vektor VoiceProfiles yang ada.

GetActivationPhrasesAsync

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

operator SPXVOICEPROFILECLIENTHANDLE

Sitnaksis: public inline explicit operator SPXVOICEPROFILECLIENTHANDLE ( );

Internal. Operator konversi eksplisit.

Mengembalikan

Pegangan.

FromConfig

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

Buat Klien Profil Suara dari konfigurasi ucapan.

Parameter

  • speechConfig Konfigurasi ucapan.

Mengembalikan

Pointer pintar yang dibungkus penunjuk klien profil suara.