diff --git a/stardew-access/ScreenReader/ScreenReaderMac.cs b/stardew-access/ScreenReader/ScreenReaderMac.cs index 7709b63..22d5ae6 100644 --- a/stardew-access/ScreenReader/ScreenReaderMac.cs +++ b/stardew-access/ScreenReader/ScreenReaderMac.cs @@ -88,11 +88,18 @@ namespace stardew_access.ScreenReader private void Speak(string text, bool interupt) { + if (_speakProcess.HasExited) { + InitializeScreenReader(); + } if (interupt) { _speakProcess.StandardInput.WriteLine("x"); } - _speakProcess.StandardInput.WriteLine($"s{text}"); + var lines = text.Split("\n").ToArray(); + foreach (var line in lines) { + _speakProcess.StandardInput.WriteLine($"s{line}"); + } + } } } \ No newline at end of file