public void Speak(string text, dynamic playDevice) { try { TtsEngine?.Speak(text, playDevice); } catch (Exception ex) { Controller.NotifyLogMessageAppend(false, ex.ToString()); } }
public void Speak(string text, dynamic playDevice, bool isSync = false, float?volume = null) { try { TtsEngine?.Speak(text, playDevice, isSync, volume); } catch (Exception ex) { Controller.NotifyLogMessageAppend(false, ex.ToString()); } }
public void Speak(string text) { Logger.Info($"Speak {text}"); try { var processed = PreProcessor.Process(text); TtsEngine?.Speak(processed); } catch (Exception ex) { Logger.Error($"Failed to speak \"{text}\"", ex); } }