Active Topics

 



Notices


Reply
Thread Tools
Posts: 29 | Thanked: 6 times | Joined on Mar 2010
#11
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!
 
Posts: 11 | Thanked: 1 time | Joined on Jun 2010
#12
Stephen Hawking?
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?).

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.
 
Posts: 637 | Thanked: 445 times | Joined on Dec 2009 @ Kaliningrad, Russia
#13
Well I installed espeak and it works for me with
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?
 
Posts: 29 | Thanked: 6 times | Joined on Mar 2010
#14
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!
 

The Following User Says Thank You to gigapus For This Useful Post:
Posts: 637 | Thanked: 445 times | Joined on Dec 2009 @ Kaliningrad, Russia
#15
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
 
Posts: 29 | Thanked: 6 times | Joined on Mar 2010
#16
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..
 

The Following User Says Thank You to gigapus For This Useful Post:
Posts: 637 | Thanked: 445 times | Joined on Dec 2009 @ Kaliningrad, Russia
#17
Thanks! Now it makes sense for me.
chmod+x to make it executable?
 
Posts: 29 | Thanked: 6 times | Joined on Mar 2010
#18
Yes, chmod +x will make it executable.
 

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


 
Forum Jump


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