View Single Post
Blaizzen's Avatar
Posts: 397 | Thanked: 802 times | Joined on Jan 2010 @ Sydney
#119
Originally Posted by Android_808 View Post
I was thinking that the .desktop file could be modified to be a script to start the python server and then run Ovi Maps. When Maps closes it should then automatically close the python app.

In relation to the other languages, your one step ahead of me there. My reason for looking into parsing the config.xml was in case there were additional files used or sentence structure for a given language. Kind of like "Take the 6th exit at the roundabout" instead of "At the roundabout, take the 6th exit", one language may require action before place, then next place before action. Only way to tell would be to compare config.xml's.

Blaizzen: with your new locale.js definitions we could pretty much drop the config.xml parser (as long as there are no issue like above). We could take the general logic from that, in terms of when each should be said, what we should do if the next maneuver is within x distance etc, and put it as a logic structure in the main javascript code. Maybe putting it in updatePosition rather than its current position?

Edit: One problem with locale.js, there's one for each locale. It would mean maintaining a copy for every locale.
I overcame the issue with the different locales by making the array separate. One issue i found though is since ovi voice navigation isn't meant to have spoken street names, there is no sound file for "onto" (and a few others i forgot), so at the moment "onto" is spoken in English meaning non-english speaking users will need to modify the array to say their local equivalent.

I added a bit to say the next turn early after we do a turn (so it kinda prepares us eg In 1.6 km turn right onto blaa street) however the distance sounds wrong, so i need to fix that. But with the distance and units, they are now sound files where possible. Kilometers and miles are sound files, as well as 1 to 10 and 50, 100, 150 ... 900. So if the distance is one of those it will play the sound instead .

Lastly implementing the python server in the desktop file would be good, i tried to make the server close when i send a command (eg exitServer) but it never closed maybe jhb if you could add that in please.

If i get the above issues solved, I might release something for others to try tomorrow/friday. I've been using it for navigation for a few days now and its pretty good. Much more advanced than anything i could have even dreamt of, all thanks to all the developers here. So thanks

Last edited by Blaizzen; 2011-01-19 at 03:07.
 

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