Replaced ^ with \n when narrating texts

master
Mohammad Shoaib Khan 2022-10-10 15:56:35 +05:30
parent b600eda78e
commit 5205df8400
2 changed files with 4 additions and 0 deletions

View File

@ -68,6 +68,8 @@ namespace stardew_access.ScreenReader
if (!MainClass.Config.TTS)
return;
if (text.Contains('^')) text = text.Replace('^', '\n');
GoString str = new GoString(text, text.Length);
Speak(str, interrupt);
}

View File

@ -65,6 +65,8 @@ namespace stardew_access.ScreenReader
if (!MainClass.Config.TTS)
return;
if (text.Contains('^')) text = text.Replace('^', '\n');
screenReader.Speak(text, interrupt);
}