use of net.osmand.plus.voice.CommandBuilder in project Osmand by osmandapp.
the class VoiceRouter method announceWaypoint.
public void announceWaypoint(List<LocationPointWrapper> points) {
CommandBuilder p = getNewCommandPlayerToPlay();
if (p == null) {
return;
}
notifyOnVoiceMessage();
makeSound();
String text = getText(null, points, null);
p.arrivedAtWayPoint(text).play();
}
use of net.osmand.plus.voice.CommandBuilder in project Osmand by osmandapp.
the class VoiceRouter method approachWaypoint.
public void approachWaypoint(Location location, List<LocationPointWrapper> points) {
CommandBuilder p = getNewCommandPlayerToPlay();
if (p == null) {
return;
}
notifyOnVoiceMessage();
double[] dist = new double[1];
makeSound();
String text = getText(location, points, dist);
p.goAhead(dist[0], null).andArriveAtWayPoint(text).play();
}
Aggregations