maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Ovi Maps Extra Features - Now with voice guidance (early development) (https://talk.maemo.org/showthread.php?t=66985)

Blaizzen 2011-03-18 12:13

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
Quote:

Originally Posted by ivgalvez (Post 970204)
I think it will be faster to provide a package that patches the default files. I wouldn't count on Nokia allowing the redistribution of any modified file.

Tried to make the patch file...

index.html = 1.44 MB
patch file = 1.9 MB

I think its sufficient to say I failed :(

If anyone can make the patch file and keep it small, that would be awesome. But for now, I give up.

ivgalvez 2011-03-18 12:38

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
What are you using to find the differences?

Blaizzen 2011-03-18 13:11

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
The Diff command in linux. The main issue I've encountered is the original file has all the javascript and css condensed, which I needed to expand before modifying. To make a small enough patch with only the changes, I tried to recondense the javascript and css, but it'll always be slightly different given its complexity, hence the diff function just gives me a patch file with pretty much the whole index.html file not the changes.

It was my first go at the diff command, and so I used this:
http://hansengel.wordpress.com/2007/...in-unix-linux/
diff -Naur <original file> <modified file> >> my_patch.patch

Maybe I did it wrong :(

cheve 2011-03-18 13:55

Re: Ovi Maps Extra Features - Now with voice guidance (early development) - original html and pfw
 
Quote:

Originally Posted by rantom (Post 966257)
You do realize that you are not allowed to do that? The code is closed source and sharing it is not allowed. Editing the code is in gray area.

@rantom:I would think it would fall under 'fair usage'. Furthermore, if you really want to be picky and carry this "closed source, sharing not allowed logic" to extreme; then I think you would better revert all the changes you have ever made to your own N900. The reason is that I do not believe the license(s) have listed explicitly what you CAN NOT/CAN modify your device.


@Blaizzen: thank you very much for your work to extend the OVI map usefulness for me/us. it is appreciated.


Cheers,

ivgalvez 2011-03-18 16:03

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
Try with Kdiff3, I've always find it much more powerful than simple diff.

x61 2011-03-18 21:42

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
Is this available to download in the extra-devel or testing? Simple question is how to I install this? Will it completely replace the existing ovi maps?

Blaizzen 2011-03-19 02:27

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
Quote:

Originally Posted by x61 (Post 970625)
Is this available to download in the extra-devel or testing? Simple question is how to I install this? Will it completely replace the existing ovi maps?

I hope that eventually it'll be available for download from extras-devel. But to do so, I wanted to automate the modification of the index.html file, so you wouldn't need to do anything but install the server (hence why I decided to rewrite it, along with I didn't know enough python to build upon the previous one). The only problem is I wanted to do it properly, therefore either asking permission from Nokia to modify and distribute the file, or use the patch method. Once either is sorted out, I'll attempt to upload a version of omvoiceserver with all the required files/changes etc.


Edit: I will also try fix the volume issue, that was reported above.

titi974 2011-03-19 06:29

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
Man, you made my day =D
I was going to ask for help on how to make french voices work but... I just tried again and guess what "Vous arrivez à destination" ! (means "you are arrived")
Now that rocks =P
can't wait to see the new version ;D
Thanks for bringing this possible !

EDIT: Oh and yeah, the GPS fix is very fast now =O (I mean precise one, because for approx. i'm using supl.google.com which is quite good)

EDIT 2: Just tested near my house, lol very funny cause there's a part in french, and another in english. But it depends on the fact if it will use the sampled voice or not.
e.g: ONE HUNDRED AND TEN mètres, tournez à gauche
(-> ONE HUNDRED AND TEN meters, turn left)
But : Dans 100 mètres, tournez à gauche
(-> In 100 meters, turn left)

Very funny, helps me to practise my english lol

peterleinchen 2011-03-19 10:56

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
Bonjour titi.

Do You use the python server with speak_02.py?
Then You already modified that file to match the specific language folder (to french):
SOUNDPATH = 'english/english_male/' #relative to where you run the server

just continue with the next lines
if len(sys.argv) < 2:
language = 'english'
else:
language = sys.argv[1]

and replace english with french and you will hear:
CENT ET DIX mètres, tournez à gauche

Another possibility is to call the python script with parameter 'french':
nohup ./speak_03.py french >/dev/null &

titi974 2011-03-19 11:46

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
hum, gonna test it right now ! =D

EDIT: I changed english with french, but still it keeps saying "SIXTY HUNDRED mètres, tournez à gauche"


All times are GMT. The time now is 09:23.

vBulletin® Version 3.8.8