combine some identical code
This commit is contained in:
parent
8f7f326bdc
commit
81c2e8227d
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue