Notices


Reply
Thread Tools
Posts: 11 | Thanked: 1 time | Joined on Jun 2010
#1
Hello.

Iīm trying get espeak running on my N800.
I even did a reflash (RX-34_DIABLO_5.2008.43-7_PR_COMBINED_MR0_ARM.bin)
to be sure that there isnīt anything wrong with my running system.

The first thing I did, was installing espeak. Everything was fine and even the dependencies were installed (espeak-data + libportaudio2 + libespeak).
But the same happened as before:

no sound and this

wave_open_sound > Pa_OpenStream : err=-9996 (Invalid device).

What am I doing wrong? Is something missing?
Or doesnīt espeak really run on my N800?

I found something like this:

"The workaround is to use gstreamer:

espeak -v en --stdout "Hello world" |gst-launch -v fdsrc ! wavparse ! audioconvert!autoaudiosink

I think thatīs the next Iīm going to try out.

Flite works great, but to listen to flite trying to speak German (Navit) is quite funny.

Best regards

Markus

Last edited by Mark69; 2010-06-18 at 15:40.
 
luca's Avatar
Posts: 1,137 | Thanked: 402 times | Joined on Sep 2007 @ Catalunya
#2
I didn't even know that there was a port of espeak for the n800, are you sure it is supposed to work?
There was a port of festival by penguinbait (IIRC), but I never used it (too big for my taste).
 
Posts: 11 | Thanked: 1 time | Joined on Jun 2010
#3
Hello.

Thanks for Your answer.

I thought this one is for the N800:

http://maemo.org/downloads/product/OS2008/espeak/

Am I wrong?
Itīs for OS2008.
And my N800 has OS2008 Version 5.2008.43-7.

I saw that there is a port of festival but itīs huge and no German voice.

Best regards

Markus
 
Posts: 11 | Thanked: 1 time | Joined on Jun 2010
#4
This post was the one I was looking for:

http://talk.maemo.org/showpost.php?p...2&postcount=38

- Install espeak.
- Install gstreamer-tools

http://maemo.org/packages/view/gstreamer-tools/

-> apt-get install gstreamer-tools

- X Terminal:
espeak -v de --stdout "Hallo Welt" |gst-launch -v fdsrc ! wavparse ! audioconvert!autoaudiosink

And it works! German voice.

Thanks for this great tip!

Last edited by Mark69; 2010-06-18 at 16:04.
 
Posts: 25 | Thanked: 2 times | Joined on May 2007
#5
i played around a little bit and found out how to listen to espeak without gstreamer.
one option ist to use mlayer to read from stdin:
HTML Code:
espeak -v de --stdout 'Hallo Welt'|mplayer -
unfortunatly, mplayer dont recognize end of stream or espeak does't send it, so must press Ctrl C to stop mplayer.

second option need no additional install as it works with the (i think) on board command play-sound:
HTML Code:
espeak -v de 'Hallo Welt' -w /media/mmc1/speak.wav && play-sound /media/mmc1/speak.wav
based on the latter option, i wrote me a little python script to listen to txt file line by line. At least for "-v de" it is not easy to understand the text, even when adjusting the -s and -g options(speed and word gap) of espeak.
Sometimes it sounds very clear, sometimes not.
One of those meant to be easy things which is still a challenge to artificial intelligence
 
Posts: 29 | Thanked: 6 times | Joined on Mar 2010
#6
For what it is worth, I cannot get the play-sound solution to work. The espeak .wav file works in both mplayer and gst-launch solutions, but play-sound produces no sound at all, and no error is reported.
 
Posts: 11 | Thanked: 1 time | Joined on Jun 2010
#7
Hi

Same for me:
mplayer doesnīt stop and play-sound gives me no sound.
That's a pity.
play-sound would be nice.

Maybe weīll find a solution...
 
Posts: 29 | Thanked: 6 times | Joined on Mar 2010
#8
I was just playing around and found that changing audio output driver in mplayer to either alsa or esd (default was sdl) will stop playback and exit at EOF. Try it!

mplayer -ao alsa file.wav

The output is also a bit louder (sdl < esd < alsa).

Last edited by gigapus; 2010-07-15 at 13:50.
 
Posts: 11 | Thanked: 1 time | Joined on Jun 2010
#9
Yes gigapus, "mplayer -ao alsa file.wav" works fine.
And, steffen800, i found out that play-sound

(espeak -v de 'Hallo Welt' -w /media/mmc1/speak.wav && play-sound /media/mmc1/speak.wav)

also works.

But you have to set the system sounds to 1 or 2.
It seems that "play-sound" is linked to N800īs system sounds settings.

Does anybody know whether there exist any parameters for play-sound?
Or does play-sound only plays wave files?

Markus
 
Posts: 11 | Thanked: 1 time | Joined on Jun 2010
#10
I found something very interesting in the web and it works!
You can use "play-sound" even if your system-alert sounds are set to none.

Have a look at this. It works.

http://blog.hacker.dk/2008/03/maemos...blet/?reffed=1

Kudos to Dan.
 
Reply


 
Forum Jump


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