maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N800 and espeak (https://talk.maemo.org/showthread.php?t=55872)

gigapus 2010-07-17 23:25

Re: N800 and espeak
 
Good find! That play-sound hack does indeed work. However, I find that the sound is quite distorted, even at moderate volumes. mplayer+alsa is not as loud, but is more listenable.

As an aside, I'm using espeak with navit. The default English accent makes me feel like I am getting directions from Stephen Hawking!

Mark69 2010-07-18 21:26

Re: N800 and espeak
 
Stephen Hawking? :D
Yes, it sounds like him. Even in German.But he is brilliant. If someone knows the right way it´s him (Is that correct English?).:confused:

You´re right. Mplayer sounds better.
I´m using Navit, too. A great app.For free and powerful.
The next thing i will try is to use mbrola voices with espeak. That should work. Packages are available.

Kroll 2011-12-26 11:39

Re: N800 and espeak
 
Well I installed espeak and it works for me with
Quote:

espeak -v de --stdout "Hallo Welt" |gst-launch -v fdsrc ! wavparse ! audioconvert!autoaudiosink
What I have to do to make Navit speak? Or it will automatically speak before the turn?

gigapus 2011-12-29 04:54

Re: N800 and espeak
 
Making navit use espeak is fairly easy. In .navit/navit.xml I have a line like this:

Code:

<speech type="cmdline" data="/usr/local/sbin/navit-speech-wrapper %s"/>
The file specified above looks like this:

Code:

#!/bin/sh

espeak -ven-rp -s135 --stdout "$1" | mplayer -ao alsa -

Make sure that this file is executable. Navit should then speak!

Kroll 2011-12-29 11:34

Re: N800 and espeak
 
I have edited my navit.xml

What about second code? Just run it in xterm?

I installed flite too but it says only 2 first letters of phrase (for example instead "1225 meters turn right" it says only "12")
Thanks

gigapus 2011-12-29 15:04

Re: N800 and espeak
 
Sorry if I was not clear. The first code snippet I posted is a line in navit.xml that refers to another file, namely /usr/local/sbin/navit-speech-wrapper. This file should contain the contents of the second code snippet (altered as necessary to suit your espeak command line preferences). It must have execute permission, and can be located anywhere and named anything, as long as the path specified in navit.xml is correct. Navit will then run that command whenever speech output is required..

Kroll 2011-12-29 20:37

Re: N800 and espeak
 
Thanks! Now it makes sense for me.
chmod+x to make it executable?

gigapus 2011-12-29 21:27

Re: N800 and espeak
 
Yes, chmod +x will make it executable.


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

vBulletin® Version 3.8.8