Replaced ^ with \n when narrating texts
parent
b600eda78e
commit
5205df8400
|
@ -68,6 +68,8 @@ namespace stardew_access.ScreenReader
|
||||||
if (!MainClass.Config.TTS)
|
if (!MainClass.Config.TTS)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (text.Contains('^')) text = text.Replace('^', '\n');
|
||||||
|
|
||||||
GoString str = new GoString(text, text.Length);
|
GoString str = new GoString(text, text.Length);
|
||||||
Speak(str, interrupt);
|
Speak(str, interrupt);
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,6 +65,8 @@ namespace stardew_access.ScreenReader
|
||||||
if (!MainClass.Config.TTS)
|
if (!MainClass.Config.TTS)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (text.Contains('^')) text = text.Replace('^', '\n');
|
||||||
|
|
||||||
screenReader.Speak(text, interrupt);
|
screenReader.Speak(text, interrupt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue