クラス Speaker::VoiceProfileClient

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

VoiceProfileClient のクラス。 このクラスは、音声プロファイルを作成、登録、削除、リセットするための音声プロファイル クライアントを作成します。 バージョン 1.12.0 で追加されました。

メンバー

プロパティ

構文: public PropertyCollection & Properties;

この VoiceProfileClient に定義されているプロパティとその値のコレクション。

~VoiceProfileClient

構文: public inline virtual ~VoiceProfileClient ( );

デストラクターです。

CreateProfileAsync

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

音声プロファイルを作成します。

パラメーター

  • profileType VoiceProfile の種類。

  • locale ロケール ("en-us" など)

戻り値

スマート ポインターでラップされた音声プロファイル クライアント オブジェクト。

EnrollProfileAsync

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

音声プロファイルを登録します。

パラメーター

  • profile 音声プロファイル オブジェクト。

  • audioInput オーディオ入力。

戻り値

スマート ポインターでラップされた音声プロファイル登録結果オブジェクト。

DeleteProfileAsync

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

音声プロファイルを削除します。

パラメーター

  • profile 音声プロファイル オブジェクト。

戻り値

スマート ポインターでラップされた音声プロファイルの結果オブジェクト。

ResetProfileAsync

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

音声プロファイルをリセットします。

パラメーター

  • profile 音声プロファイル オブジェクト。

戻り値

スマート ポインターでラップされた音声プロファイルの結果オブジェクト。

RetrieveEnrollmentResultAsync

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

音声プロファイルの ID と種類を指定して、登録結果を取得します。

パラメーター

  • voiceProfileId VoiceProfile ID。

  • voiceProfileType VoiceProfileType。

戻り値

取得した VoiceProfileEnrollmentResult の将来。

RetrieveEnrollmentResultAsync

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

音声プロファイルを指定して登録結果を取得します。

パラメーター

  • voiceProfile 音声プロファイル オブジェクト。

戻り値

GetAllProfilesAsync

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

指定した種類のすべてのプロファイルを取得します。

パラメーター

  • voiceProfileType VoiceProfileType。

戻り値

拡張 VoiceProfiles のベクトルの未来。

GetActivationPhrasesAsync

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

演算子 SPXVOICEPROFILECLIENTHANDLE

構文: public inline explicit operator SPXVOICEPROFILECLIENTHANDLE ( );

内部。 明示的な変換演算子。

戻り値

ハンドル。

FromConfig

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

音声構成から音声プロファイル クライアントを作成します。

パラメーター

  • speechConfig 音声の構成。

戻り値

スマート ポインターが音声プロファイル クライアント ポインターをラップしました。