fix issue that many TTS engines pronounce slashes (e.g. in destinations)
This commit is contained in:
parent
2c3ca1fc0a
commit
26e4228c07
1 changed files with 1 additions and 0 deletions
|
@ -617,6 +617,7 @@ public class VoiceRouter {
|
||||||
pn = pn.replace('-', ' ');
|
pn = pn.replace('-', ' ');
|
||||||
pn = pn.replace(':', ' ');
|
pn = pn.replace(':', ' ');
|
||||||
pn = pn.replace(";", ", "); // Trailing blank prevents punctuation being pronounced. Replace by comma for better intonation.
|
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()))) {
|
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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue