FragmentState Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides detailed information about a TextFragment
.
public value class FragmentState : IEquatable<System::Speech::Synthesis::TtsEngine::FragmentState>
public struct FragmentState : IEquatable<System.Speech.Synthesis.TtsEngine.FragmentState>
type FragmentState = struct
Public Structure FragmentState
Implements IEquatable(Of FragmentState)
- Inheritance
- Implements
FragmentState instances are obtained from the State on TextFragment objects.
The information in FragmentState is obtained by parsing the attributes decorating speech text in the Synthesize Speech Markup Language (SSML) used as an input to a synthesis engine.
A FragmentState object can exist for any synthesizer action request as specified by its Action property. However, the meaning of its members may change for different actions. For more information on synthesize actions, see TtsEngineAction for more information about specifying synthesizer actions.
Specification and control of the quality of the spoken output is largely handled through the Prosody, Emphasis, and Duration
Phonetic, language, and linguist structure information is available through LangId, Phoneme, and SayAs.
Fragment |
Constructs a new instance of |
Action |
Returns the requested speech synthesizer action. |
Duration |
Returns the desired time for rendering a TextFragment. |
Emphasis |
Returns instructions on how to emphasize a TextFragment. |
Lang |
Returns the language supported by the current FragmentState. |
Phoneme |
Returns phonetic information for a TextFragment. |
Prosody |
Returns detailed information about the pitch, speaking rate, and volume of speech output. |
Say |
Returns information about the context for the generation of speech from text. |
Equals(Fragment |
Determines if a given instance of FragmentState is equal to the current instance of FragmentState. |
Equals(Object) |
Determines if a given object is an instance FragmentState equal to the current instance of FragmentState. |
Get |
Returns the hash code for this instance. |
Equality(Fragment |
Determines if two instances of FragmentState describes the same TextFragment state. |
Inequality(Fragment |
Determines if two instances of FragmentState describes the different TextFragment state. |
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: