Share via


FragmentState コンストラクター

定義

FragmentState の新しいインスタンスを作成します。

public:
 FragmentState(System::Speech::Synthesis::TtsEngine::TtsEngineAction action, int langId, int emphasis, int duration, System::Speech::Synthesis::TtsEngine::SayAs ^ sayAs, System::Speech::Synthesis::TtsEngine::Prosody ^ prosody, cli::array <char> ^ phonemes);
public FragmentState (System.Speech.Synthesis.TtsEngine.TtsEngineAction action, int langId, int emphasis, int duration, System.Speech.Synthesis.TtsEngine.SayAs sayAs, System.Speech.Synthesis.TtsEngine.Prosody prosody, char[] phonemes);
new System.Speech.Synthesis.TtsEngine.FragmentState : System.Speech.Synthesis.TtsEngine.TtsEngineAction * int * int * int * System.Speech.Synthesis.TtsEngine.SayAs * System.Speech.Synthesis.TtsEngine.Prosody * char[] -> System.Speech.Synthesis.TtsEngine.FragmentState
Public Sub New (action As TtsEngineAction, langId As Integer, emphasis As Integer, duration As Integer, sayAs As SayAs, prosody As Prosody, phonemes As Char())

パラメーター

action
TtsEngineAction

音声合成の操作を指定する TtsEngineAction 列挙体のメンバー。

langId
Int32

使用されている言語の ID。 XML xml:lang 属性に対応します。

emphasis
Int32

音声出力や一時停止に適用される強調。

duration
Int32

TextFragment のテキストを読み上げるために割り当てられた時間。

sayAs
SayAs

TextFragment のテキストの種類および含まれているテキストの正確なレンダリングに必要な詳細レベルを示す SayAs クラスのメンバー。

SSML の仕様の <say-as> XML タグに対応します。 引数には null を指定できます。

prosody
Prosody

声の高さ、話す速度、ボリュームなどの音声出力の特性を示す Prosody オブジェクト。

SSML 仕様の <プロソディ> XML タグに対応します。

phonemes
Char[]

国際音声記号 (IPA) の仕様で TextFragment に格納されているテキストに音声発音を提供する char オブジェクトの配列。

SSML の仕様の <phoneme> XML タグに対応します。

この引数は null にできます。

注釈

通常、アプリケーションはオブジェクトを直接構築 FragmentState しません。 代わりに、 FragmentState インスタンスは名前空間の System.Speech.Synthesis メンバーを使用してアプリケーションによって作成されます。

引数でTtsEngineAction指定された値がactionSilence指定されている場合、引数によってemphasis指定される値は次のいずれかになります。

  • 正の場合、一時停止する時間 (ミリ秒単位)

  • 列挙体のメンバーが負の EmphasisBreak 場合

引数でTtsEngineActionaction指定された値が指定されていないSilence場合、引数はemphasisEmphasisWordである必要があります。

引数の値durationとプロパティDurationまたは引数でprosody指定されたオブジェクトがProsody異なる場合は、オブジェクトのProsody値が使用されます。

適用対象

こちらもご覧ください