public void Dispose() { if (_SpeechSynthesizer != null) { _SpeechSynthesizer.Dispose(); _SpeechSynthesizer = null; } }
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 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>(); }