better tts intonation for semicolon-separated values

This commit is contained in:
sonora 2015-08-02 10:53:41 +02:00
parent f985b00a90
commit 59b9c9b99c

View file

@ -584,7 +584,7 @@ public class VoiceRouter {
if(pn != null) { if(pn != null) {
pn = pn.replace('-', ' '); pn = pn.replace('-', ' ');
pn = pn.replace(':', ' '); pn = pn.replace(':', ' ');
pn = pn.replace(";", "; "); // Trailing blank prevents punctuation being pronounced pn = pn.replace(";", ", "); // Trailing blank prevents punctuation being pronounced. Replace by comma for better intonation.
if ((player != null) && (!"de".equals(player.getLanguage()))) { if ((player != null) && (!"de".equals(player.getLanguage()))) {
pn = pn.replace("\u00df", "ss"); // Helps non-German tts voices to pronounce German Strasse (=street) pn = pn.replace("\u00df", "ss"); // Helps non-German tts voices to pronounce German Strasse (=street)
} }