SynthesizerState 枚举
定义
枚举 SpeechSynthesizer 状态的值。Enumerates values for the state of the SpeechSynthesizer.
public enum class SynthesizerState
public enum SynthesizerState
type SynthesizerState =
Public Enum 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 来指示的当前状态 SpeechSynthesizer 。The State property uses SynthesizerState to indicate the current state of the SpeechSynthesizer. 有关示例,请参见 State。See State for an example.
PreviousState和 State 属性用于 SynthesizerState 指示在 SpeechSynthesizer 引发事件时的状态 StateChanged 。The PreviousState and State properties use SynthesizerState to indicate state of the SpeechSynthesizer when the StateChanged event is raised.