FragmentState 结构

定义

提供有关 TextFragment 的详细信息。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)
继承
FragmentState
实现

注解

FragmentState 实例是从 State 对象上获取的 TextFragmentFragmentState instances are obtained from the State on TextFragment objects.

中的信息 FragmentState 是通过分析合成语音标记语言 (SSML) 用作合成引擎输入的属性来获取的。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.

FragmentState对于任何合成器操作请求,其属性指定的对象可能会有一个对象 ActionA 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. 有关合成操作的详细信息,请参阅 TtsEngineAction 以获取有关指定合成器操作的详细信息。For more information on synthesize actions, see TtsEngineAction for more information about specifying synthesizer actions.

  • 对所讲述输出质量的规范和控制很大程度 Prosody 上通过、 Emphasis 和进行处理。 DurationSpecification and control of the quality of the spoken output is largely handled through the Prosody, Emphasis, and Duration

  • 拼音、语言和 linguist 结构信息通过 LangIdPhoneme 和提供 SayAsPhonetic, language, and linguist structure information is available through LangId, Phoneme, and SayAs.

构造函数

FragmentState(TtsEngineAction, Int32, Int32, Int32, SayAs, Prosody, Char[])

构造 FragmentState 的新实例。Constructs a new instance of FragmentState.

属性

Action

返回请求的语音合成器操作。Returns the requested speech synthesizer action.

Duration

返回呈现 TextFragment 所需的时间。Returns the desired time for rendering a TextFragment

Emphasis

返回对如何强调 TextFragment 的说明。Returns instructions on how to emphasize a TextFragment.

LangId

返回当前 FragmentState 支持的语言。Returns the language supported by the current FragmentState.

Phoneme

返回 TextFragment 的语音信息。Returns phonetic information for a TextFragment

Prosody

返回有关语音输出的音调、语速和音量的详细信息。Returns detailed information about the pitch, speaking rate, and volume of speech output.

SayAs

返回有关从文本生成语音的上下文信息。Returns information about the context for the generation of speech from text.

方法

Equals(FragmentState)

确定 FragmentState 的给定实例是否等于 FragmentState 的当前实例。Determines if a given instance of FragmentState is equal to the current instance of FragmentState.

Equals(Object)

确定给定对象是否为等于 FragmentState 的当前实例的实例 FragmentStateDetermines if a given object is an instance FragmentState equal to the current instance of FragmentState.

GetHashCode()

返回此实例的哈希代码。Returns the hash code for this instance.

运算符

Equality(FragmentState, FragmentState)

确定 FragmentState 的两个实例是否描述了相同的 TextFragment 状态。Determines if two instances of FragmentState describes the same TextFragment state.

Inequality(FragmentState, FragmentState)

确定 FragmentState 的两个实例是否描述了不同的 TextFragment 状态。Determines if two instances of FragmentState describes the different TextFragment state.

适用于