32 references to SynthesizerState
System.Speech (32)
Internal\Synthesis\VoiceSynthesis.cs (24)
107if (prompt.IsCompleted && args.State == SynthesizerState.Ready) 346if (State == SynthesizerState.Speaking) 351if (State == SynthesizerState.Paused) 458if (_pendingSpeakQueue.Count > 0 && State == SynthesizerState.Ready) 460OnStateChanged(SynthesizerState.Speaking); 462OnStateChanged(SynthesizerState.Paused); 479OnStateChanged(SynthesizerState.Speaking); 484if (State == SynthesizerState.Paused) 486OnStateChanged(SynthesizerState.Speaking); 488OnStateChanged(SynthesizerState.Ready); 579internal SynthesizerState State 694if (_currentPrompt == null && State != SynthesizerState.Paused) 696OnStateChanged(SynthesizerState.Speaking); 824_synthesizerState = SynthesizerState.Ready; 985private void OnStateChanged(SynthesizerState state) 990SynthesizerState previousState = _synthesizerState; 1015System.Diagnostics.Debug.Assert(State == SynthesizerState.Speaking || State == SynthesizerState.Paused); 1017if (State != SynthesizerState.Paused) 1020SynthesizerState previousState = _synthesizerState; 1021_synthesizerState = SynthesizerState.Ready; 1594for (int i = 0; i < 20 && State != SynthesizerState.Ready; i++) 1794private SynthesizerState _synthesizerState = SynthesizerState.Ready;
Synthesis\SpeechSynthesizer.cs (2)
126if (State == SynthesizerState.Paused) 402public SynthesizerState State
Synthesis\SynthesizerStateChangedEventArgs.cs (6)
9internal StateChangedEventArgs(SynthesizerState state, SynthesizerState previousState) 20public SynthesizerState State 27public SynthesizerState PreviousState 39private SynthesizerState _state; 41private SynthesizerState _previousState;