maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Spoken directions, maemo-mapper, *without* using -devel (https://talk.maemo.org/showthread.php?t=51197)

rlpowell 2010-04-27 21:01

Spoken directions in maemo-mapper, *without* using extras-devel
 
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


woody14619 2010-05-17 19:06

Re: Spoken directions, maemo-mapper, *without* using -devel
 
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 2010-05-17 19:17

Re: Spoken directions, maemo-mapper, *without* using -devel
 
Quote:

Originally Posted by woody14619 (Post 662931)
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.

blipnl 2010-05-21 17:22

Re: Spoken directions, maemo-mapper, *without* using -devel
 
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 ;)

rlpowell 2010-05-21 17:49

Re: Spoken directions, maemo-mapper, *without* using -devel
 
Quote:

Originally Posted by blipnl (Post 669616)
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

rlpowell 2010-05-21 18:02

Re: Spoken directions, maemo-mapper, *without* using -devel
 
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

Patola 2010-05-21 18:18

Re: Spoken directions, maemo-mapper, *without* using -devel
 
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.

blipnl 2010-05-21 18:24

Re: Spoken directions, maemo-mapper, *without* using -devel
 
hmmz, still doesent work, same error ;o

i checked for misspelling twice, what am i doing wrong? not enaugh rootfs? over 34 mb..

GameboyRMH 2010-05-21 18:38

Re: Spoken directions, maemo-mapper, *without* using -devel
 
Nice, I gotta try this out next time I'm in North America.

woody14619 2010-05-25 22:02

Re: Spoken directions, maemo-mapper, *without* using -devel
 
Quote:

Originally Posted by blipnl (Post 669684)
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?


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

vBulletin® Version 3.8.8