class EmbeddedSpeechConfig
埋め込み (オフライン) 音声構成を定義するクラス。
メンバーズ
演算子 SPXSPEECHCONFIGHANDLE
構文: public inline explicit operator SPXSPEECHCONFIGHANDLE ( ) const;
基になるハンドル値を取得するために使用される内部演算子。
収益
ハンドル。
GetSpeechRecognitionModels
構文: public inline std::vector< std::shared_ptr< SpeechRecognitionModel > > GetSpeechRecognitionModels ( );
使用可能な音声認識モデルの一覧を取得します。
収益
音声認識モデルの情報。
SetSpeechRecognitionModel
構文: public inline void SetSpeechRecognitionModel ( const std::string & name , const std::string & license );
音声認識のモデルを設定します。
パラメーター
name
モデル名。license
ライセンス テキスト。
GetSpeechRecognitionModelName
構文: public inline std::string GetSpeechRecognitionModelName ( ) const;
音声認識のモデル名を取得します。
収益
音声認識モデル名。
SetSpeechRecognitionOutputFormat
構文: public inline void SetSpeechRecognitionOutputFormat ( OutputFormat format );
音声認識の出力形式を設定します。
パラメーター
- 音声認識の出力形式 (単純または詳細) を
format
します。
GetSpeechRecognitionOutputFormat
構文: public inline OutputFormat GetSpeechRecognitionOutputFormat ( ) const;
音声認識の出力形式を取得します。
収益
音声認識の出力形式 (単純または詳細)。
SetProfanity
構文: public inline void SetProfanity ( ProfanityOption profanity );
不適切な表現オプションを設定します。 これは、不適切な単語を削除したり、マスクしたりするために使用できます。
パラメーター
-
profanity
不適切な表現オプションの値です。
SetSpeechSynthesisVoice
構文: public inline void SetSpeechSynthesisVoice ( const std::string & name , const std::string & license );
埋め込み音声合成の音声を設定します。
パラメーター
name
埋め込み音声合成の音声名。license
ライセンス テキスト。
GetSpeechSynthesisVoiceName
構文: public inline std::string GetSpeechSynthesisVoiceName ( ) const;
埋め込み音声合成の音声名を取得します。
収益
音声合成モデル名、つまり音声名。
SetSpeechSynthesisOutputFormat
構文: public inline void SetSpeechSynthesisOutputFormat ( SpeechSynthesisOutputFormat formatId );
音声合成出力形式 (Riff16Khz16BitMonoPcm など) を設定します。
パラメーター
-
formatId
出力形式 ID を指定します
GetSpeechSynthesisOutputFormat
構文: public inline std::string GetSpeechSynthesisOutputFormat ( ) const;
音声合成の出力形式を取得します。
収益
音声合成の出力形式。
GetSpeechTranslationModels
構文: public inline std::vector< std::shared_ptr< SpeechTranslationModel > > GetSpeechTranslationModels ( );
使用可能な音声翻訳モデルの一覧を取得します。
収益
音声翻訳モデルの情報。
SetSpeechTranslationModel
構文: public inline void SetSpeechTranslationModel ( const std::string & name , const std::string & license );
音声翻訳のモデルを設定します。
パラメーター
モデル名
name
します。license
ライセンステキスト。
GetSpeechTranslationModelName
構文: public inline std::string GetSpeechTranslationModelName ( ) const;
音声翻訳のモデル名を取得します。
収益
音声翻訳モデル名。
SetKeywordRecognitionModel
構文: public inline void SetKeywordRecognitionModel ( const std::string & name , const std::string & license );
キーワード認識のモデルを設定します。 これは、ウェイク ワードとダイレクト コマンドを検出するために調整された顧客固有のモデル用です。
パラメーター
モデル名
name
します。license
ライセンステキスト。
GetKeywordRecognitionModelName
構文: public inline std::string GetKeywordRecognitionModelName ( ) const;
キーワード認識のモデル名を取得します。
収益
キーワード認識モデル名。
SetProperty
構文: public inline void SetProperty ( const std::string & name , const std::string & value );
プロパティ値を名前で設定します。
パラメーター
name
プロパティ名。value
プロパティ値です。
SetProperty
構文: public inline void SetProperty ( PropertyId id , const std::string & value );
ID でプロパティ値を設定します。
パラメーター
id
プロパティ ID。value
プロパティ値です。
GetProperty
構文: public inline std::string GetProperty ( const std::string & name ) const;
名前でプロパティ値を取得します。
パラメーター
-
name
パラメーター名。
収益
プロパティ値。
GetProperty
構文: public inline std::string GetProperty ( PropertyId id ) const;
ID でプロパティ値を取得します。
パラメーター
-
id
パラメーター ID。
収益
プロパティ値。
~EmbeddedSpeechConfig
構文: public virtual ~EmbeddedSpeechConfig ( ) = default;
オブジェクトを破棄します。
FromPath
構文: public inline static std::shared_ptr< EmbeddedSpeechConfig > FromPath ( const std::string & path );
指定されたオフライン モデル パスを使用して、埋め込み音声構成のインスタンスを作成します。
パラメーター
-
path
オフライン モデルを検索するフォルダー パス。 サブフォルダーに複数のモデルが配置されているルート パスや、特定のモデル フォルダーへの直接パスを指定できます。
収益
新しい埋め込み音声構成インスタンスへの共有ポインター。
FromPaths
構文: public inline static std::shared_ptr< EmbeddedSpeechConfig > FromPaths ( const std::vector< std::string > & paths );
指定されたオフライン モデル パスを使用して、埋め込み音声構成のインスタンスを作成します。
パラメーター
-
paths
オフライン モデルを検索するフォルダー パス。 サブフォルダーに複数のモデルが配置されているルート パスや、特定のモデル フォルダーへの直接パスを指定できます。
収益
新しい埋め込み音声構成インスタンスへの共有ポインター。