FragmentState コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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);
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
SayAs クラスのメンバー。TextFragmentのテキストの種類と、含まれているテキストの正確なレンダリングに必要な詳細レベルを示します。
SSML 仕様の <say-as> XML タグに対応します
引数は nullできます。
- phonemes
- Char[]
国際音声アルファベット (IPA) 仕様を使用して、TextFragmentに含まれるテキストの発音を提供するchar オブジェクトの配列。
SSML 仕様の <phoneme> XML タグに対応します。
この引数は nullできます。
注釈
通常、アプリケーションは FragmentState オブジェクトを直接構築しません。 代わりに、 FragmentState インスタンスは、 System.Speech.Synthesis 名前空間のメンバーを使用してアプリケーションによって作成されます。
action引数で指定されたTtsEngineAction値がSilence場合、emphasis引数によって指定される値は次のいずれかになります。
正の場合、一時停止する時間 (ミリ秒単位)
負の場合は、 EmphasisBreak 列挙体のメンバー
action引数で指定されたTtsEngineAction値がSilenceされていない場合、emphasis引数はEmphasisWord型である必要があります。
duration引数の値と、Duration プロパティまたはprosody引数で指定されたProsody オブジェクトが異なる場合は、Prosody オブジェクトの値が使用されます。