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, registrera, 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.
Parametrar
profileType
en VoiceProfile-typ.locale
ett språk, t.ex. "en-us"
Returer
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.
Parametrar
profile
ett röstprofilobjekt.audioInput
en ljudinmatning.
Returer
Ett resultatobjekt för smart pekare omsluten röstprofilregistrering.
DeleteProfileAsync
Syntax: public inline std::future< std::shared_ptr< VoiceProfileResult > > DeleteProfileAsync ( std::shared_ptr< VoiceProfile > profile );
Ta bort en röstprofil.
Parametrar
profile
ett röstprofilobjekt.
Returer
Ett smart pekaromslutet resultatobjekt för röstprofilen.
ResetProfileAsync
Syntax: public inline std::future< std::shared_ptr< VoiceProfileResult > > ResetProfileAsync ( std::shared_ptr< VoiceProfile > profile );
Återställ en röstprofil.
Parametrar
profile
ett röstprofilobjekt.
Returer
Ett smart pekaromslutet resultatobjekt för röstprofilen.
RetrieveEnrollmentResultAsync
Syntax: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > RetrieveEnrollmentResultAsync ( const std::string & voiceProfileId , VoiceProfileType voiceProfileType );
Hämta ett registreringsresultat baserat på ID och typ för röstprofilen.
Parametrar
voiceProfileId
VoiceProfile-ID:t.voiceProfileType
The VoiceProfileType.
Returer
En framtid för den hämtade VoiceProfileEnrollmentResult.
RetrieveEnrollmentResultAsync
Syntax: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > RetrieveEnrollmentResultAsync ( constVoiceProfile & voiceProfile );
Hämta ett registreringsresultat baserat på röstprofilen.
Parametrar
voiceProfile
ett röstprofilobjekt.
Returer
GetAllProfilesAsync
Syntax: public inline std::future< std::vector< std::shared_ptr< VoiceProfile > > > GetAllProfilesAsync ( VoiceProfileType voiceProfileType );
Hämta alla profiler som har den angivna typen.
Parametrar
voiceProfileType
The VoiceProfileType.
Returer
En framtid för en vektor med utökning av 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 ( );
Interna. Explicit konverteringsoperator.
Returer
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.
Parametrar
speechConfig
Talkonfiguration.
Returer
En smart pekare omsluten röstprofilklientpekare.