次の方法で共有


class 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 );

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

パラメーター

  • VoiceProfile の種類を profileType します。

  • ロケールを 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 と種類を指定して、登録結果を取得します。

パラメーター

  • VoiceProfile ID を voiceProfileId します。

  • VoiceProfileType を voiceProfileType します。

返品ポリシー

取得した VoiceProfileEnrollmentResult の将来。

RetrieveEnrollmentResultAsync

構文: public inline std::future< std::shared_ptr< VoiceProfileEnrollmentResult > > RetrieveEnrollmentResultAsync ( const VoiceProfile & 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 します。

返品ポリシー

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