Delen via


klasse Speaker::VoiceProfileClient

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

Klasse voor VoiceProfileClient. Met deze klasse maakt u een spraakprofielclient voor het maken, registreren, verwijderen en opnieuw instellen van een spraakprofiel. Toegevoegd in versie 1.12.0.

Leden

Eigenschappen

Syntaxis: public PropertyCollection & Properties;

Een verzameling eigenschappen en de bijbehorende waarden die zijn gedefinieerd voor deze VoiceProfileClient.

~VoiceProfileClient

Syntaxis: public inline virtual ~VoiceProfileClient ( );

Destructor.

CreateProfileAsync

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

Maak een spraakprofiel.

Parameterwaarden

  • profileType een VoiceProfile-type.

  • locale een landinstelling, bijvoorbeeld "en-us"

Retouren

Een slim aanwijzer verpakt spraakprofielclientobject.

EnrollProfileAsync

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

Schrijf een spraakprofiel in.

Parameterwaarden

  • profile een spraakprofielobject.

  • audioInput een audio-invoer.

Retouren

Een slim aanwijzersgewikkeld resultaatobject voor spraakprofielinschrijving.

DeleteProfileAsync

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

Een spraakprofiel verwijderen.

Parameterwaarden

  • profile een spraakprofielobject.

Retouren

Een slim aanwijzergewikkeld spraakprofielresultaatobject.

ResetProfileAsync

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

Stel een spraakprofiel opnieuw in.

Parameterwaarden

  • profile een spraakprofielobject.

Retouren

Een slim aanwijzergewikkeld spraakprofielresultaatobject.

RetrieveEnrollmentResultAsync

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

Haal een inschrijvingsresultaat op met de id en het type spraakprofiel.

Parameterwaarden

  • voiceProfileId De VoiceProfile-id.

  • voiceProfileType Het VoiceProfileType.

Retouren

Een toekomst van de opgehaalde VoiceProfileEnrollmentResult.

RetrieveEnrollmentResultAsync

Syntaxis: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > RetrieveEnrollmentResultAsync ( const VoiceProfile & voiceProfile );

Haal een inschrijvingsresultaat op op basis van het Spraakprofiel.

Parameterwaarden

  • voiceProfile een spraakprofielobject.

Retouren

GetAllProfilesAsync

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

Haal alle profielen met het opgegeven type op.

Parameterwaarden

  • voiceProfileType Het VoiceProfileType.

Retouren

Een toekomst van een vector van extant VoiceProfiles.

GetActivationPhrasesAsync

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

operator SPXVOICEPROFILECLIENTHANDLE

Syntaxis: public inline explicit operator SPXVOICEPROFILECLIENTHANDLE ( );

Intern. Expliciete conversieoperator.

Retouren

Een handvat.

FromConfig

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

Maak een Spraakprofielclient op basis van een spraakconfiguratie.

Parameterwaarden

  • speechConfig Speech-configuratie.

Retouren

Een smart pointer verpakte spraakprofielclientpointer.