Raspberry Pi Problems with "broken" eSpeak output after a few seconds:
Accordingly to the following discussion in the raspberry pi forums: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=47942&p=476337 I've tried to discover additional information to resolve the problems of "slow and broken" eSpeak output. It seems that if you use the --stdout option and another wav-player behind eSpeak (i.e. aplay) there is no problem and you can play long textes.
If you use the audio output of eSpeak (tool) or library, there comes "broken" output with a long delay after a few seconds where all sounds good.
The CPU usage of eSpeak is around 7 to 11 percent, so there seems to be no problem.
I've connected the eSpeak library in a simple test application and tried to change the buffer settings of the initialization. This brings no success (e.a. tried 200 to 2000ms). My suggestion is, that there are some kind of sample-rate related problems or taht der ist es problem with the portaudio library.
Any suggestion for further investigations?
Kind regards
Michael
problem is on both versions identically
another further tests I'll try is to recompile speech data to the sample-rate of 44100 (seems to be alsa default on Raspberry Pi bcm2385 SOC)
Does it work if everywhere in code 22050 is replaced to 44100?