FragmentState Struct

Definition

提供有关 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)
Inheritance
FragmentState
Implements

Remarks

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

FragmentState 中的信息是通过分析用于作为合成引擎输入的合成 Speech 标记语言(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.

Action 属性指定的任何合成器操作请求均可 FragmentState 对象。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. 有关合成操作的详细信息,请参阅 TtsEngineAction,了解有关指定合成器操作的详细信息。For more information on synthesize actions, see TtsEngineAction for more information about specifying synthesizer actions.

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

  • 可以通过 LangIdPhonemeSayAs获取拼音、语言和 linguist 结构信息。Phonetic, language, and linguist structure information is available through LangId, Phoneme, and SayAs.

Constructors

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

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

Properties

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.

Methods

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.

Operators

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.

Applies to