Reply
Thread Tools
Posts: 35 | Thanked: 13 times | Joined on Feb 2010
#1
People have been trying to get voiced turn directions on the N900 for a while. There's basically two ways to go, that I know of:

* get flite from *extras-devel*, which is scary, and use the trick at a post from woody14619 to make it actually work
* get espeak from extras and edit /usr/bin/flite look like this:

Code:
#!/bin/sh

shift 1

/usr/bin/espeak "$@"
Props to penguinbait for the idea.

In case you're not comfortable with the editor, here's the step-by-step like woody's post:

Code:
rootsh
cd /usr/bin
cat >flite <<EOF
#!/bin/sh
shift 1
/usr/bin/espeak "$@"
EOF
chmod a+x flite

Last edited by rlpowell; 2010-05-21 at 17:49.
 

The Following 6 Users Say Thank You to rlpowell For This Useful Post:
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#2
I have to say, I kind of like this method better and will probably be switching to it soon. Esp since espeak has an active maintainer, where flite does not. Thanks to penguinbait for the idea and rlpowell for the post. I've linked this into my solutions thread so it should see some traffic.

Please feel free to add more solutions there if you think of them, find them, or create them!
 
xomm's Avatar
Posts: 609 | Thanked: 243 times | Joined on Jan 2010 @ Eastern USA
#3
Originally Posted by woody14619 View Post
I have to say, I kind of like this method better and will probably be switching to it soon. Esp since espeak has an active maintainer, where flite does not. Thanks to penguinbait for the idea and rlpowell for the post. I've linked this into my solutions thread so it should see some traffic.

Please feel free to add more solutions there if you think of them, find them, or create them!
It might take a while to find ideal settings for espeak to get intelligible (for purposes of driving) instructions.

I've found the lower the pitch, speed, and volume, the easier it is to understand. Pitch can be set to minimum, speed close to minimum, but not too low that it's excruciating, and volume low enough that you don't get the "screeching" effect.

But since espeak also has Russian and Chinese (various dialects) libraries now, that opens up some interesting paths.
__________________
==In school once again. Free time limited to night, holidays and weekends.==
Hi! I'm Andy, a Maemo Greeter! I'm also a moderator of the Applications, Nokia N900, and Maemo 5/Fremantle forums.
Useful Links: Maemo Wiki Main Page, New users start here, Beginners' wiki page, Maemo5 101, Frequently Asked Questions (FAQ)
Also, pin yourself in the map! Maemo Map. Send me a PM (Private Message) if I leave you hanging on a problem (or if you need more help).
Owner of both a N800 and N900; Active community member since Jan 2010. You've been xommified! - My blog.
 
blipnl's Avatar
Posts: 279 | Thanked: 231 times | Joined on Apr 2010 @ Holland
#4
on my N900 x-terminal says:

"shift: can't shift that many"

should I try the devel way instead? If it is not risky, and i'd follow instructions closely. Please help me out
 
Posts: 35 | Thanked: 13 times | Joined on Feb 2010
#5
Originally Posted by blipnl View Post
on my N900 x-terminal says:

"shift: can't shift that many"

should I try the devel way instead? If it is not risky, and i'd follow instructions closely. Please help me out
Whoops. Try "shift 1" instead of just "shift".

-Robin
 
Posts: 35 | Thanked: 13 times | Joined on Feb 2010
#6
FWIW, I now use: /usr/bin/espeake -a 40 -s 120 "$@"

This works pretty well.

Now, if only I could figure out how to get "media player" to not totally take over the sound system. To get directions *and* music i have to use MediaBox, which is very CPU intensive; on top of Mapper itself, which isn't exactly lightweight, it causes problems with espeak.

-Robin
 
Posts: 267 | Thanked: 183 times | Joined on Jan 2010 @ Campinas, SP, Brazil
#7
Very good tip, but there's one glitch. Mapper is in english and tells directions in english, right? But english pronunciation is very different from portuguese (my native language) pronunciation and when I use the default english language, it would tell the street names in an unrecognizable pronunciation, but if I use the portuguese language (espeak -v pt) it wouldn't tell the english words correctly.

I am assuming. I tried this recipe but all I got was some unrecognizable words from mapper after I've traced a route. I still didn't drive using it.
__________________
My nickname on freenode is ptl, that is, the consonants of my nickname here. Kind of a long story.
 
blipnl's Avatar
Posts: 279 | Thanked: 231 times | Joined on Apr 2010 @ Holland
#8
hmmz, still doesent work, same error ;o

i checked for misspelling twice, what am i doing wrong? not enaugh rootfs? over 34 mb..
 
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#9
Nice, I gotta try this out next time I'm in North America.
__________________
"Impossible is not in the Maemo vocabulary" - Caballero
 
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#10
Originally Posted by blipnl View Post
hmmz, still doesent work, same error
Try this instead:

Code:
#!/bin/sh
/usr/bin/espeak -a 40 -s 120 "$*"
That's working well for me. This may all be a moot point tomorrow when PR1.2 hits. Does the new update to OVI Maps do turn-by-turn and/or voice output?
 

The Following User Says Thank You to woody14619 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 22:49.