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)

evan 2011-03-15 13:24

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
so, what about
omvoiceserver
that has appeared in the repos. anything I need to know before I just try it out?

Blaizzen 2011-03-15 21:27

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

Originally Posted by evan (Post 968212)
so, what about
omvoiceserver
that has appeared in the repos. anything I need to know before I just try it out?

I wasn't going to say anything about it yet, since i wanted to add the xml parser so its more accurate, but its a replacement for the python server, but also has a gui. It allows you to turn off espeak, test espeak and the preloaded voice commands. Works under any (i hope) setup ie windows maemo and linux (though its currently hardcoded to look in certain folders and might crash if its not there).

It also has the ability to change language without restarting the server. It will load all voices it finds in the cities/voices folder and under options allows changing them, so you can say commands in english, then maybe swap to greek etc.

Most importantly though, i ultimately want it to read the addresses database and hence give offline navigation. The address stuff is located in the cities folder (can't remember the full path though, will update when i get back from work). The index file sends a message to the nokia server and requests an xml of results. I've made it send the request to my app, and then it can send its own xml results, hence offline searching. (in theory :p).

So if anyone knows how to read the database of addresses, I'd come out of your screen and hug you.

Blaizzen 2011-03-16 11:52

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
For those wishing to try crack the database. Its located under
Quote:

/home/user/MyDocs/cities/diskcache/ClientIndex
There you will find folders with 3 letters for each country. Opening the files (city.dat, city.db and city.ref) in notepad gives you suburb names etc, hence why I'm guessing they are the address databases. If anyone can open it and read it, it would be awesomely amazing!

Zibeb 2011-03-16 18:21

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
So I installed voice guidance according to Jiri's instructions, and it worked great. The only problem is that the synthesized voice is way way way louder than the sampled voice. I scared my fiancée half to death in my initial tests when all of the sudden I hear over the car stereo "SEVEN HUNDRED AND SIXTY FIVE yards, turn left." Is there any way to turn him down?

robcmk 2011-03-17 02:43

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

Originally Posted by Zibeb (Post 969090)
So I installed voice guidance according to Jiri's instructions, and it worked great. The only problem is that the synthesized voice is way way way louder than the sampled voice. I scared my fiancée half to death in my initial tests when all of the sudden I hear over the car stereo "SEVEN HUNDRED AND SIXTY FIVE yards, turn left." Is there any way to turn him down?

Same thing with mine.

locolyric 2011-03-17 13:56

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
great mod!
Can the other features like auto re-calculate implement into the apps?

Blaizzen 2011-03-18 09:58

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.

I have requested help from the council to get permission to distribute the index.html file (and other files if needed).
http://talk.maemo.org/showpost.php?p...&postcount=374

ivgalvez 2011-03-18 10:06

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
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.

locolyric 2011-03-18 10:18

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
how do we add custom POI in nokia maps?

Blaizzen 2011-03-18 10:34

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

Originally Posted by locolyric (Post 969651)
great mod!
Can the other features like auto re-calculate implement into the apps?

Unlikely, but you never know. Its mainly due to the way the application displays everything. From my understanding the plugin draws the route and the html shows the dot based on gps, however I could be very wrong.

Quote:

Originally Posted by locolyric (Post 970210)
how do we add custom POI in nokia maps?

I think someone said you can add it into the address book and then use that as a POI, but otherwise theres no POI in the ovi maps application. In the future it may be possible to use the search field as a POI selector, but not sure.


Sorry, I'm not giving much good news :p

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"

peterleinchen 2011-03-19 21:10

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
It works perfectly!

Did You kill the old python server prior to starting the new one?
Open xterm and type
ps | grep py
Find the PID of the process with "python ./speak_02.py" and replace in following command:
sudo kill 'PID of python ./speak_02.py'

titi974 2011-03-20 04:58

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
hum...
"sh: bad pid 'PID of python ./speak_02.py/"
I think i'm missing something =D lol

Dark_Angel85 2011-03-20 07:37

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
wow... erm... tried the voice navigation....

I.S.N.T. T.H.E.R.E. A. M.O.R.E. N.A.T.U.R.A.L. V.O.I.C.E?

mscion 2011-03-20 14:26

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

Originally Posted by dark_angel85 (Post 971462)
wow... Erm... Tried the voice navigation....

I.s.n.t. T.h.e.r.e. A. M.o.r.e. N.a.t.u.r.a.l. V.o.i.c.e?

don'.. t un..der..stand.. It sou..nd...s nat..ur..al to me...

gsever 2011-03-21 02:43

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
Is there a way to offline route (including offline place search) in Nokia Maps?

x61 2011-03-21 03:36

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
If I understand right, to get this to work we must download the two attached files on the first page. Correct? If not, could you please provide a step by step guide to installing it?

Thanks.

Dark_Angel85 2011-03-21 04:51

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
seriously... it sounds so synthesized... or if that's how it's called... sounds like stephen hawking is on my GPS

titi974 2011-03-21 06:05

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

Originally Posted by x61 (Post 972110)
If I understand right, to get this to work we must download the two attached files on the first page. Correct? If not, could you please provide a step by step guide to installing it?

Thanks.

just follow the tutorial in the link posted in the first post of this thread ;) it's completely explained !

titi974 2011-03-21 06:06

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

Originally Posted by Dark_Angel85 (Post 972122)
seriously... it sounds so synthesized... or if that's how it's called... sounds like stephen hawking is on my GPS

very very synthesized as you say x) but hey, I would prefer stephen hawking's voice xD it's a lot better than eSpeak's one ;)

WhiteWolf 2011-03-21 17:30

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
How do I install the voices for this program? The language is Spanish.

Thanks

locolyric 2011-03-22 10:51

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
the patch work.
But everytime i reboot the device. The ovi maps muted again. And i need to re-do some steps in the tutorial to wake the voice guidance up.

Android_808 2011-03-26 11:49

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
Has anyone tried replacing espeak with festival yet? Just wondered if it was any less robotic

titi974 2011-03-29 18:59

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
festival ? is it already developped for the n900 ?
one other question, finally, did anybody manage to implement both portrait and landscape mode ? as i saw some time ago that a hack had been made to implement portrait but only portrait...

Blaizzen 2011-03-31 12:20

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
1 Attachment(s)
Are you feeling adventurous? Want a little excitement in your life? Want to potentially break OVI maps and all the hard work you did to get voice commands working? Then its your lucky day, cause I've decided to release my latest version of OmVoiceServer and new index.html page. Why shall I install this version you ask? Well... good question, cause it contains stuff!
  1. Allows a log of sent commands and allows saving log or clearing
  2. Allows turning off eSpeak commands
  3. Allows testing of commands (from voice files) as well as what phrases will sound like in espeak
  4. Allows changing of eSpeak volume and languge selection
  5. Reads the xml data and correctly says the commands
  6. Allows for changing of languages during runtime
  7. Full of more bugs
  8. And not much more!

It uses a different method to play sound files compared to the python server, hence they are incompatible. All sound commands are sent now as maneuver types (ie Junction LeftTurn) and are indicated as Sounds (ie http://127.0.0.1:9999/Sound/150|km|roundabout|roundabout2|onto|test street). The reason for using Sound/{commands} is it allows me to use different beginnings for different things, so currently it allows searching too (which is still online), but it logs the search requests. I also wanted to allow a speed feature, where it would send the current speed and if it is over a limit, to make a noise. This will also allow other possibilities (maybe even reading POI from a file and displaying it to the user in the html etc).

Issues/To do:
  • Forgot to put the "save log" and "clear log" buttons under the first tab only... minor issue will be fixed in next version
  • Relies heavily on correct xml config files. Hence any missing item will cause it to break. Currently from the languages tested, seems Arabic is broken. The fix seems easy so if you want to use a language and its not working, let me know and i'll upload a fixed config.xml
  • XML parsing is not 100%. Will hopefully be updated in the future
  • Still not a 100% self contained installer (and I doubt it will be for a while)
  • Have some form of offline searching implemented - will try to make it if you search for "poi-home", instead of looking online, it'll just bring up a saved xml file instead. Hence allowing for a semi-usable poi system.

In terms of the offline search, seems that going down the path of reading the map data myself might be a little difficult. I've been looking at functions in the plugin and found something promising, for reverseGeoCoding it uses
binder._finder.reverseGeoCode(searchType, igeocoords);
looking at the dll in a hex editor (qtcreator is a great hex editor btw), it seems there is a geoCode function, which should be what we need. However I have no idea how to call it, if its really the function I want, or how to return values from it. But i guess its another option.

As usual let me know of any bugs, feature requests (I've looked into automatic route recalculation once you move off the path, but no leads yet) and other stuff you wish to share/comment on.

And I know all that about "do not distribute Nokia's code" etc, but I really can't be bothered anymore, I'm not doing this for any personal gain, nor do I profit from this in any way. If you'd all be happier with a 2 meg patch for a 1 meg file, I'll gladly do that. And I did ask the council, but no reply for over a week. Like I've said before, delete the thread if its a major issue.

http://maemo.org/packages/view/omvoiceserver/

Blaizzen 2011-03-31 12:23

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

Originally Posted by titi974 (Post 977945)
festival ? is it already developped for the n900 ?
one other question, finally, did anybody manage to implement both portrait and landscape mode ? as i saw some time ago that a hack had been made to implement portrait but only portrait...

As for portrait mode in Maps, check here http://talk.maemo.org/showthread.php?t=69885

I personally won't be working on it though.

Android_808 2011-03-31 15:46

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

Originally Posted by titi974 (Post 977945)
festival ? is it already developped for the n900 ?
one other question, finally, did anybody manage to implement both portrait and landscape mode ? as i saw some time ago that a hack had been made to implement portrait but only portrait...

There is a port in extras-devel. I just wondered if anyone had tried sending commands to that rather than espeak.

woody14619 2011-04-01 04:25

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

Originally Posted by Android_808 (Post 979244)
There is a port in extras-devel. I just wondered if anyone had tried sending commands to that rather than espeak.

I tried using flite a few times... It creates Wav files correctly, but sounds somewhere between a mosquito to a chipmunk when playing audio to the device directly. The original author ported it for the N800 and cross-compiled it for the N900 but didn't have an actual N900 to test it on.

So, festival kind of works, but could use some patching before it's actually useful for real world use.

pali 2011-04-01 12:57

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
Voice files can be downloaded by Nokia Map Loader. It set voice path in file (voicefiles section, relative to MyDocs):
/home/user/MyDocs/.qf

Blaizzen can you change default voice path to this?

cheve 2011-04-01 14:56

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

link to discussion and more recent versions of OVI map: http://discussions.europe.nokia.com/...ht/true#M28220. Make sure you checkout post #5 of the linked thread above for information.

you may also want to checkout this older link for info
http://discussions.europe.nokia.com/...t/td-p/686081#

Cheers,

Note: I have not tried the new map on my N900 yet, just find out the link recently.

WhiteWolf 2011-04-01 19:28

Re: Ovi Maps Extra Features - Now with voice guidance (early development)
 
I do not get it to work.

I do not know howmake the voices , orwhere to get them .

The system also speaks eSpeak using the Maps application.


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

vBulletin® Version 3.8.8