クラスSpeechSynthesisRequest

音声合成要求を定義するクラス。 このクラスはプレビュー段階であり、変更される可能性があります。 バージョン 1.37.0 で追加されました。

メンバーズ

演算子 SPXREQUESTHANDLE

構文: public inline explicit operator SPXREQUESTHANDLE ( ) const;

基になるハンドル値を取得するために使用される内部演算子。

収益

ハンドル。

GetInputStream (英語)

構文: public inline InputStream & GetInputStream ( );

音声合成要求の入力ストリームを取得します。

収益

入力ストリーム。

セットピッチ

構文: public inline void SetPitch ( const std::string & pitch );

合成された音声のピッチを設定します。

パラメーター

  • pitch 合成された音声のピッチ。

レート設定

構文: public inline void SetRate ( const std::string & rate );

読み上げ速度を設定します。

パラメーター

  • rate 読み上げ速度。

音量設定

構文: public inline void SetVolume ( const std::string & volume );

読み上げ音量を設定します。

パラメーター

  • volume 話す音量。

スタイル設定

構文: public inline void SetStyle ( const std::string & style );

読み上げスタイルを設定します。

パラメーター

  • style 話すスタイル。

温度の設定

構文: public inline void SetTemperature ( const float temperature );

話す温度を設定します。

パラメーター

  • temperature 話す温度。

SetCustomLexiconUrl

構文: public inline void SetCustomLexiconUrl ( const std::string & customLexiconUrl );

カスタム辞書のURLを設定します。

パラメーター

  • customLexiconUrl カスタム発音辞書への URL。

SetPreferLocales

構文: public inline void SetPreferLocales ( const std::string & preferLocales );

音声合成の優先ロケールを設定します。

パラメーター

  • preferLocales ロケール名を優先順にカンマで区切ったリスト。

~SpeechSynthesisRequest

構文: public inline virtual ~SpeechSynthesisRequest ( );

オブジェクトを破棄します。

NewTextStreamingリクエスト

構文: public inline static std::shared_ptr< SpeechSynthesisRequest > NewTextStreamingRequest ( );

テキスト ストリーミングが有効になっている音声合成要求を作成します。

収益

新しい音声合成要求インスタンスへの共有ポインター。