combine some identical code

This commit is contained in:
sonora 2013-08-20 23:18:42 +02:00
parent 8f7f326bdc
commit 81c2e8227d

View file

@ -426,11 +426,7 @@ public class VoiceRouter {
}
// replace characters which may produce unwanted tts sounds:
if(res != null) {
res = res.replace('-', ' ');
res = res.replace(':', ' ');
res = res.replace("ß", "ss"); // helps non-German tts voices to pronounce German Straße (=street)
res = res.replace("\u00df", "ss");
res = res.replace("ß", "ss");
res = getSpeakablePointName(res)
}
return res;
}
@ -440,6 +436,7 @@ public class VoiceRouter {
if(pn != null) {
pn = pn.replace('-', ' ');
pn = pn.replace(':', ' ');
pn = pn.replace("ß", "ss"); // helps non-German tts voices to pronounce German Straße (=street)
}
return pn;
}