View Single Post
Blaizzen's Avatar
Posts: 397 | Thanked: 802 times | Joined on Jan 2010 @ Sydney
#115
Originally Posted by CormacB View Post
I think calling it "beta" was a bit premature. I would not recommend trying this stuff yet unless you are a developer.
good point... guess I got a little too excited Fixed


I tried a different method to get voice navigation (since I couldn't figure out the xml parser or get it to work ). So inside the "medos\i18n" folder is all the localized settings, phrases etc. I noticed you used getDescription before to get the direction (which was genius, didn't even know it was there ). I decided to add a .sound to the ends of the important directions and link them straight to the sound file. I had a quick look at other languages and they all seem to have the same structure (ie same sound file names for the same directions). So i basically added this to the end of the locale.js file:
Code:
"nokia.maps.pfw.action.changehighway.sound”:”:g5man_006”,
"nokia.maps.pfw.action.changehighway.sound.street”:”:g5man_006",
"nokia.maps.pfw.action.continuehighway.sound”:”:g5man_008”,
"nokia.maps.pfw.action.continuehighway.sound.street”:”:g5man_008",
"nokia.maps.pfw.action.end.sound”:”:g5ann_001",
"nokia.maps.pfw.action.end.sound.street”:”:g5ann_001",
"nokia.maps.pfw.action.enterhighway.sound”:”:g5man_005",
"nokia.maps.pfw.action.enterhighway.sound.street”:”:g5man_005”,
"nokia.maps.pfw.action.enterhighwayfromleft.sound”:”:g5man_005e|from the left",
"nokia.maps.pfw.action.enterhighwayfromleft.sound.street”:”:g5man_005e|{0} from the left",
"nokia.maps.pfw.action.enterhighwayfromright.sound”:”:g5man_005e|from the right",
"nokia.maps.pfw.action.enterhighwayfromright.sound.street”:”:g5man_005e|{0} from the right",
"nokia.maps.pfw.action.ferry.sound”:”:g5serv_004",
"nokia.maps.pfw.action.ferry.sound.street”:”:g5serv_004",
"nokia.maps.pfw.action.junction.sound”:”:at the junction",
"nokia.maps.pfw.action.junction.sound.street”:”:at the junction",
"nokia.maps.pfw.action.leavehighway.sound”:”:g5ext_000”,
"nokia.maps.pfw.action.leavehighway.sound.street”:”:g5ext_000|{1} to {0}",
"nokia.maps.pfw.action.noaction.sound”:”:g5man_001e”,
"nokia.maps.pfw.action.noaction.sound.street”:”:g5man_001e|on",
"nokia.maps.pfw.action.passjunction.sound”:”:pass the junction",
"nokia.maps.pfw.action.passjunction.sound.street”:”:pass the junction",
"nokia.maps.pfw.action.roundabout.sound”:”:g5mod_005",
"nokia.maps.pfw.action.roundabout.sound.street”:”:g5mod_005",
"nokia.maps.pfw.action.stopover.sound”:”:you have reached a waypoint",
"nokia.maps.pfw.action.stopover.sound.street”:”:you have reached a waypoint",
"nokia.maps.pfw.action.undefined.sound”:”:start your journey",
"nokia.maps.pfw.action.undefined.sound.street”:”:start your journey on",
"nokia.maps.pfw.action.uturn.sound”:”:g5man_004”,
"nokia.maps.pfw.action.uturn.sound.street":":g5man_004|on",
"nokia.maps.pfw.maneuver.joiner.sound”:”:and",
"nokia.maps.pfw.turn.heavyleft.sound”:”:g5tul_004",
"nokia.maps.pfw.turn.heavyleft.sound.street”:”:g5tul_004|onto",
"nokia.maps.pfw.turn.heavyright.sound”:”:g5tur_004",
"nokia.maps.pfw.turn.heavyright.sound.street”:”:g5tur_004|onto",
"nokia.maps.pfw.turn.keepleft.sound”:”:g5tul_001",
"nokia.maps.pfw.turn.keepleft.sound.street”:”:g5tul_001|onto",
"nokia.maps.pfw.turn.keepmiddle.sound”:”:g5man_009”,
"nokia.maps.pfw.turn.keepmiddle.sound.street”:”:g5man_009|onto",
"nokia.maps.pfw.turn.keepright.sound”:”:g5tur_001",
"nokia.maps.pfw.turn.keepright.sound.street”:”:g5tur_001|onto",
"nokia.maps.pfw.turn.lightleft.sound”:”:g5tul_002",
"nokia.maps.pfw.turn.lightleft.sound.street”:”:g5tul_002|onto",
"nokia.maps.pfw.turn.lightright.sound”:”:g5tur_002",
"nokia.maps.pfw.turn.lightright.sound.street”:”:g5tur_002|onto",
"nokia.maps.pfw.turn.noturn.sound”:”:g5man_001”,
"nokia.maps.pfw.turn.noturn.sound.street”:”:g5man_001|onto",
"nokia.maps.pfw.turn.quiteleft.sound”:”:g5tul_003",
"nokia.maps.pfw.turn.quiteleft.sound.street”:”:g5tul_003|onto",
"nokia.maps.pfw.turn.quiteright.sound”:”:g5tur_003",
"nokia.maps.pfw.turn.quiteright.sound.street”:”:g5tur_003|onto",
"nokia.maps.pfw.turn.return.sound”:”:return",
"nokia.maps.pfw.turn.return.sound.street”:”:return onto",
"nokia.maps.pfw.turn.roundabout1.sound”:”:g5ext_001”,
"nokia.maps.pfw.turn.roundabout1.sound.street”:”:g5ext_001|onto",
"nokia.maps.pfw.turn.roundabout10.sound”:”:g5ext_010”,
"nokia.maps.pfw.turn.roundabout10.sound.street”:”:g5ext_010|onto",
"nokia.maps.pfw.turn.roundabout11.sound”:”:take the eleventh exit",
"nokia.maps.pfw.turn.roundabout11.sound.street”:”:take the eleventh exit onto",
"nokia.maps.pfw.turn.roundabout12.sound”:”:take the twelfth exit",
"nokia.maps.pfw.turn.roundabout12.sound.street”:”:take the twelfth exit onto",
"nokia.maps.pfw.turn.roundabout2.sound”:”:g5ext_002”,
"nokia.maps.pfw.turn.roundabout2.sound.street”:”:g5ext_002|onto",
"nokia.maps.pfw.turn.roundabout3.sound”:”:g5ext_003”,
"nokia.maps.pfw.turn.roundabout3.sound.street”:”:g5ext_003|onto",
"nokia.maps.pfw.turn.roundabout4.sound”:”:g5ext_004”,
"nokia.maps.pfw.turn.roundabout4.sound.street”:”:g5ext_004|onto",
"nokia.maps.pfw.turn.roundabout5.sound”:”:g5ext_005”,
"nokia.maps.pfw.turn.roundabout5.sound.street”:”:g5ext_005|onto",
"nokia.maps.pfw.turn.roundabout6.sound”:”:g5ext_006”,
"nokia.maps.pfw.turn.roundabout6.sound.street”:”:g5ext_006|onto",
"nokia.maps.pfw.turn.roundabout7.sound”:”:g5ext_007”,
"nokia.maps.pfw.turn.roundabout7.sound.street”:”:g5ext_007|onto",
"nokia.maps.pfw.turn.roundabout8.sound”:”:g5ext_008”,
"nokia.maps.pfw.turn.roundabout8.sound.street”:”:g5ext_008|onto",
"nokia.maps.pfw.turn.roundabout9.sound”:”:g5ext_009”,
"nokia.maps.pfw.turn.roundabout9.sound.street”:”:g5ext_009|onto",
"nokia.maps.pfw.unit.kilometer.sound”:”:g5unt_004",
"nokia.maps.pfw.unit.mile.sound”:”:g5unt_008",
"nokia.maps.pfw.unit.yard.sound”:”:g5unt_006"
Now it will substitute the wav sound files instead of saying the phrases, and it seems to work fine kinda. This needs jhb's python server to run though, so its not totally dependent on html/javascript.


In terms of a usable ovi maps with guidance, not sure when it will be released (if ever). But personally I'll try share any code that works well enough just for testing purposes, and I assume others will be doing the same
 

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