View Single Post
Blaizzen's Avatar
Posts: 397 | Thanked: 802 times | Joined on Jan 2010 @ Sydney
#162
Originally Posted by CormacB View Post
Blaizzen: in your index.html you don't need to include evalspeech.js as it is not being used by your navigation logic.
Actually the evalspeech.js file is now the hardcoded array for the speech. I should have used a different name to reduce confusion, but I was lazy at the time


As for turning off R2D2 from saying your streetnames
Code:
        _guidanceWarn :function(ev) {
		
			var distanceParts = nokia.maps.pfw.Units.getReadableDistance(ev.data.distance, nokia.maps.mapPlayer.map.isUsingImperialUnits());
			
			var unitsSound = soundFiles[distanceParts.unit.slice(7,distanceParts.unit.length - 2) + ".sound"];			
			var valueSound = soundFiles[distanceParts.value + ".sound"];
			if ((typeof valueSound == 'undefined') || (valueSound == "")) {
				var valueSound = distanceParts.value;
			}
			
			
			
            //var msg = valueSound + "|" + unitsSound + "|" + ev.data.maneuver.getSound(navTrans, true);
			var msg = valueSound + "|" + unitsSound + "|" + ev.data.maneuver.getSound(navTrans, true;
            SayVoice(msg);
        },
Change getSound(navTrans, true); from true to false
 

The Following 2 Users Say Thank You to Blaizzen For This Useful Post: