This commit is contained in:
sonora 2019-03-05 13:05:02 +01:00
parent 8e5032d612
commit 24ce4df904

View file

@ -644,6 +644,11 @@ public class VoiceRouter {
pn = pn.replace("SR", "S R"); // Avoid SR (as for State Route or Strada Regionale) be pronounced as "Senior" in English TTS voice
pn = pn.replace("Dr.", "Dr "); // Avoid pause many English TTS voices introduce after period
}
if ((player != null) && (player.getLanguage().equals("de"))) {
if (pn.startsWith("St ")) {
pn = pn.replace("St ", "S T "); // German Staatsstrasse, abbreviated St, often mispronounced
}
}
}
return pn;
}