also replace ':' before prnouncing prompts

This commit is contained in:
sonora 2013-08-07 00:19:24 +02:00
parent 2f2fac6cff
commit e9ca208984

View file

@ -424,7 +424,12 @@ public class VoiceRouter {
} else if(!Algorithms.isEmpty(i.getStreetName())) {
res = i.getStreetName();
}
return res.replace('-', ' ');
// replace characters which may produce unwanted tts sounds:
if(res != null) {
res = res.replace('-', ' ');
res = res.replace(':', ' ');
}
return res;
}
private void playPrepareTurn(RouteDirectionInfo next, int dist) {