diff --git a/RotationSolver/SpeechHelper.cs b/RotationSolver/SpeechHelper.cs index f9acb5f82..0615cfeb4 100644 --- a/RotationSolver/SpeechHelper.cs +++ b/RotationSolver/SpeechHelper.cs @@ -10,6 +10,7 @@ internal static class SpeechHelper { static SpeechSynthesizer _speech; public static string[] VoiceNames { get; private set; } + static bool _errored; internal static void Speak(string text) { try @@ -23,7 +24,11 @@ internal static void Speak(string text) } catch(Exception ex) { - PluginLog.Error(ex, "Speech Exception"); + if (!_errored) + { + _errored = true; + PluginLog.Error(ex, "Speech Exception"); + } } _speech.SpeakAsyncCancelAll(); _speech.SpeakAsync(text);