SynthesizerState 枚举

定义

枚举 SpeechSynthesizer 状态的值。Enumerates values for the state of the SpeechSynthesizer.

public enum class SynthesizerState
public enum SynthesizerState
type SynthesizerState = 
Public Enum SynthesizerState
继承
SynthesizerState

字段

Paused 2

指示 SpeechSynthesizer 为暂停。Indicates that the SpeechSynthesizer is paused.

Ready 0

指示 SpeechSynthesizer 准备从提示生成语音。Indicates that the SpeechSynthesizer is ready to generate speech from a prompt.

Speaking 1

指示 SpeechSynthesizer 正在讲话。Indicates that the SpeechSynthesizer is speaking.

注解

State属性使用 SynthesizerState 来指示的当前状态 SpeechSynthesizerThe State property uses SynthesizerState to indicate the current state of the SpeechSynthesizer. 有关示例,请参见 StateSee State for an example.

PreviousStateState 属性用于 SynthesizerState 指示在 SpeechSynthesizer 引发事件时的状态 StateChangedThe PreviousState and State properties use SynthesizerState to indicate state of the SpeechSynthesizer when the StateChanged event is raised.

适用于