Can't get SAY to work (Program Bug and Problems)

by Hans Linkels @, Saturday, January 22, 2011, 00:32 (3317 days ago) @ Jim


I totally agree with your thoughts on an error in the espeak_Synth API function. I believe it is coming from an error between the "portaudio" driver used internally with espeak, the portaudio library (18 or 19), and other goofy audio stuff (alsa).

If you download from SourceForge you will see that I have added an option to use espeak from a system shell and not from the library. This worked very well for me on a virtual Debial sid I have and was how it was originally implemented (a couple of years ago).

1. download the tgz file
2. make sure all of the dependencies ate installed per the COMPILING.txt file
3. edit the file and comment out the lines for the espeak library and uncomment the line for the LINUX_ESPEAK_EXECUTE
4. follow compiling instructions: make clean, qmake, make, sudo make install

Tell me what happened.


I compiled the package as per your directions, and I can confirm espeak is now called as a system call. However, no sound was heard from the USB headset.

BUT I did some discoveries. From BASIC256 espeak is playing thru the on-board sound card, not the USB headset which is the default.

When BASIC256 is not running, espeak from the command line plays thru my USB headset.
When I start BASIC256 espeak from the command line still plays thru my USB headset.
After I run a SAY command in BASIC256, sound comes from the on-board card
With BASIC256 still running (the application, not the basic program) when I run espeak from a command line again, sound still comes from my on-board card.
After closing BASIC256, espeak from the command line plays thru my USB headset again.

Other applications (mplayer on the command line, youtube in the browser) show exactly the same behaviour.

It seems as running the SAY command makes my on-board sound device the default device, and as soon as I terminate BASIC256, the default device returns to what I specified in asound.conf.


Complete thread:

 RSS Feed of thread

powered by my little forum