FragmentState FragmentState FragmentState FragmentState Struct

定義

提供 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)
繼承
FragmentStateFragmentStateFragmentStateFragmentState
實作

備註

FragmentState 執行個體取自StateTextFragment物件。FragmentState instances are obtained from the State on TextFragment objects.

中的資訊FragmentState由剖析裝飾語音文字中合成語音 Markup Language (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.

AFragmentState物件可以有任何所指定的合成器動作要求其Action屬性。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.

建構函式

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

建構 FragmentState 的新執行個體。Constructs a new instance of FragmentState.

屬性

Action Action Action Action

傳回要求的語音合成器動作。Returns the requested speech synthesizer action.

Duration Duration Duration Duration

傳回呈現 TextFragment 所需的時間Returns the desired time for rendering a TextFragment

Emphasis Emphasis Emphasis Emphasis

傳回如何強調 TextFragment 的指示。Returns instructions on how to emphasize a TextFragment.

LangId LangId LangId LangId

傳回目前 FragmentState 所支援的語言。Returns the language supported by the current FragmentState.

Phoneme Phoneme Phoneme Phoneme

傳回 TextFragment 的語音資訊Returns phonetic information for a TextFragment

Prosody Prosody Prosody Prosody

傳回語音輸出的音調、說話速率及音量的詳細資訊。Returns detailed information about the pitch, speaking rate, and volume of speech output.

SayAs SayAs SayAs SayAs

傳回從文字產生語音的內容資訊。Returns information about the context for the generation of speech from text.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否為等於目前 FragmentState 執行個體的 FragmentState 執行個體。Determines if a given object is an instance FragmentState equal to the current instance of FragmentState.

Equals(FragmentState) Equals(FragmentState) Equals(FragmentState) Equals(FragmentState)

判斷指定的 FragmentState 執行個體是否等於目前的 FragmentState 執行個體。Determines if a given instance of FragmentState is equal to the current instance of FragmentState.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

傳回這個執行個體的雜湊碼。Returns the hash code for this instance.

運算子

Equality(FragmentState, FragmentState) Equality(FragmentState, FragmentState) Equality(FragmentState, FragmentState) Equality(FragmentState, FragmentState)

判斷兩個 FragmentState 執行個體是否會描述相同的 TextFragment 狀態。Determines if two instances of FragmentState describes the same TextFragment state.

Inequality(FragmentState, FragmentState) Inequality(FragmentState, FragmentState) Inequality(FragmentState, FragmentState) Inequality(FragmentState, FragmentState)

判斷 FragmentState 的兩個執行個體是否會描述不同的 TextFragment 狀態。Determines if two instances of FragmentState describes the different TextFragment state.

適用於