class Speaker::VoiceProfileClient
class Speaker::VoiceProfileClient
: public std::enable_shared_from_this< VoiceProfileClient >
Klass för VoiceProfileClient. Den här klassen skapar röstprofilklient för att skapa, göra registrering, ta bort och återställa en röstprofil. Har lagts till i version 1.12.0.
Medlemmar
Egenskaper
Syntax: public PropertyCollection & Properties;
En samling egenskaper och deras värden som definierats för denna VoiceProfileClient.
~VoiceProfileClient
Syntax: public inline virtual ~VoiceProfileClient ( );
Destructor.
CreateProfileAsync
Syntax: public inline std::future< std::shared_ptr< VoiceProfile > > CreateProfileAsync ( VoiceProfileType profileType , const std::string & locale );
Skapa en röstprofil.
Parameterar
profileType
en VoiceProfile-typ.locale
ett språk, t.ex. "en-us"
Återlämning
Ett smart pekare omslutet röstprofilklientobjekt.
EnrollProfileAsync
Syntax: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > EnrollProfileAsync ( std::shared_ptr< VoiceProfile > profile , std::shared_ptr< Audio::AudioConfig > audioInput );
Registrera en röstprofil.
Parameterar
profile
ett röstprofilobjekt.audioInput
en ljudinmatning.
Återlämning
Ett smart pekare omslutet resultatobjekt för röstprofilregistrering.
DeleteProfileAsync
Syntax: public inline std::future< std::shared_ptr< VoiceProfileResult > > DeleteProfileAsync ( std::shared_ptr< VoiceProfile > profile );
Ta bort en röstprofil.
Parameterar
-
profile
ett röstprofilobjekt.
Återlämning
Ett smart pekare omslutet röstprofilresultatobjekt.
ResetProfileAsync
Syntax: public inline std::future< std::shared_ptr< VoiceProfileResult > > ResetProfileAsync ( std::shared_ptr< VoiceProfile > profile );
Återställ en röstprofil.
Parameterar
-
profile
ett röstprofilobjekt.
Återlämning
Ett smart pekare omslutet röstprofilresultatobjekt.
RetrieveEnrollmentResultAsync
Syntax: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > RetrieveEnrollmentResultAsync ( const std::string & voiceProfileId , VoiceProfileType voiceProfileType );
Hämta ett registreringsresultat med tanke på ID och typ av röstprofil.
Parameterar
voiceProfileId
VoiceProfile-ID:t.voiceProfileType
VoiceProfileType.
Återlämning
En framtid för den hämtade VoiceProfileEnrollmentResult.
RetrieveEnrollmentResultAsync
Syntax: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > RetrieveEnrollmentResultAsync ( const VoiceProfile & voiceProfile );
Hämta ett registreringsresultat med röstprofilen.
Parameterar
-
voiceProfile
ett röstprofilobjekt.
Återlämning
GetAllProfilesAsync
Syntax: public inline std::future< std::vector< std::shared_ptr< VoiceProfile > > > GetAllProfilesAsync ( VoiceProfileType voiceProfileType );
Hämta alla profiler som har den angivna typen.
Parameterar
-
voiceProfileType
VoiceProfileType.
Återlämning
En framtid för en vektor av befintliga VoiceProfiles.
GetActivationPhrasesAsync
Syntax: public inline std::future< std::shared_ptr< VoiceProfilePhraseResult > > GetActivationPhrasesAsync ( VoiceProfileType voiceProfileType , const std::string & locale );
operatorN SPXVOICEPROFILECLIENTHANDLE
Syntax: public inline explicit operator SPXVOICEPROFILECLIENTHANDLE ( );
Inre. Explicit konverteringsoperator.
Återlämning
Ett handtag.
FromConfig
Syntax: public inline static std::shared_ptr< VoiceProfileClient > FromConfig ( std::shared_ptr< SpeechConfig > speechConfig );
Skapa en röstprofilklient från en talkonfiguration.
Parameterar
-
speechConfig
Speech-konfiguration.
Återlämning
En smart pekare omsluten röstprofilklientpekare.