fix issue that many TTS engines pronounce slashes (e.g. in destinations)

This commit is contained in:
sonora 2016-06-01 21:52:15 +02:00
parent 2c3ca1fc0a
commit 26e4228c07

View file

@ -617,6 +617,7 @@ public class VoiceRouter {
pn = pn.replace('-', ' ');
pn = pn.replace(':', ' ');
pn = pn.replace(";", ", "); // Trailing blank prevents punctuation being pronounced. Replace by comma for better intonation.
pn = pn.replace("/", ", "); // Slash is actually pronounced by many TTS engines, ceeating an awkward voice prompt, better replace by comma.
if ((player != null) && (!"de".equals(player.getLanguage()))) {
pn = pn.replace("\u00df", "ss"); // Helps non-German tts voices to pronounce German Strasse (=street)
}