Export (0) Print
Expand All

FragmentState.FragmentState Constructor

Constructs a new instance of FragmentState.

Namespace: System.Speech.Synthesis.TtsEngine
Assembly: System.Speech (in system.speech.dll)

public FragmentState (
	TtsEngineAction action,
	int langId,
	int emphasis,
	int duration,
	SayAs sayAs,
	Prosody prosody,
	char[] phonemes
)
public FragmentState (
	TtsEngineAction action, 
	int langId, 
	int emphasis, 
	int duration, 
	SayAs sayAs, 
	Prosody prosody, 
	char[] phonemes
)
public function FragmentState (
	action : TtsEngineAction, 
	langId : int, 
	emphasis : int, 
	duration : int, 
	sayAs : SayAs, 
	prosody : Prosody, 
	phonemes : char[]
)
Not applicable.

Parameters

action

An instance of TtsEngineAction specifying a requested speech synthesis action.

langId

An int specifying the id of the language being used. Corresponds to the XML xml:lang attribute.

emphasis

A sign int corresponding the emphasis to be applied to speech output or pauses.

duration

The time allotted to speak the text of a TextFragment.

sayAs

A valid instance of SayAs, indicating the type of text of the TextFragment and the level of detail required for accurate rendering of the contained text.

Corresponds to the <say-as> XML tag in the SSML specification

The argument may be null.

prosody

A valid instance of Prosody indicating the pitch, speaking rate and volume of the speech output.

Corresponds to the <prosody> XML tag in the SSML specification

phonemes

An array of char objects providing the phonetic pronunciation for text contained in the TextFragment, using the International Phonetic Alphabet (IPA) specification.

Corresponds to the <phoneme> XML tag in the SSML specification.

This argument may be a null reference (Nothing in Visual Basic).

Typically, applications do not directly construct FragmentState objects. Instead, FragmentState instances are created by applications using the members of the System.Speech.Synthesis name space.

If the TtsEngineAction value specified by the action argument is Silence, the value supplied by the emphasis argument is either:

  • If positive, the time in millisecond to pause

  • If negative a member of the EmphasisBreakenumeration

If the TtsEngineAction value specified by the action argument is not Silenceemphasis argument must be of type EmphasisWord.

If the value of the duration argument and The Duration property or the Prosody object specified by the prosody argument differ, the value on the Prosody object is used.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft