Example #1
0
 public void Dispose()
 {
     if (_SpeechSynthesizer != null)
     {
         _SpeechSynthesizer.Dispose();
         _SpeechSynthesizer = null;
     }
 }
Example #2
0
            public void TestTextToSpeech(string name, int rate)
            {
                _SpeechSynthesizer.Dispose();
                _SpeechSynthesizer = Factory.Singleton.Resolve <ISpeechSynthesizerWrapper>();

                _SpeechSynthesizer.SelectVoice(name ?? _DefaultVoiceName);
                _SpeechSynthesizer.Rate = rate;
                _SpeechSynthesizer.SetOutputToDefaultAudioDevice();
                _SpeechSynthesizer.SpeakAsync("From L. F. P. G., Paris to E. D. D. T., Berlin");
            }
Example #3
0
 public DefaultProvider()
 {
     _SpeechSynthesizer = Factory.Singleton.Resolve <ISpeechSynthesizerWrapper>();
 }
            public void TestTextToSpeech(string name, int rate)
            {
                _SpeechSynthesizer.Dispose();
                _SpeechSynthesizer = Factory.Singleton.Resolve<ISpeechSynthesizerWrapper>();

                _SpeechSynthesizer.SelectVoice(name ?? _DefaultVoiceName);
                _SpeechSynthesizer.Rate = rate;
                _SpeechSynthesizer.SetOutputToDefaultAudioDevice();
                _SpeechSynthesizer.SpeakAsync("From L. F. P. G., Paris to E. D. D. T., Berlin");
            }
 public void Dispose()
 {
     if(_SpeechSynthesizer != null) {
         _SpeechSynthesizer.Dispose();
         _SpeechSynthesizer = null;
     }
 }
 public DefaultProvider()
 {
     _SpeechSynthesizer = Factory.Singleton.Resolve<ISpeechSynthesizerWrapper>();
 }