bug: 354522 title: espeak sound doesn't play correctly date-reported: Fri, 03 Apr 2009 14:27:34 -0000 date-updated: Wed, 19 May 2010 03:23:08 -0000 reporter: Aleksey Sadovoy (lex-onm) duplicate-of: duplicates: 348435 349817 363173 attachments: https://bugs.launchpad.net/bugs/354522/+attachment/532833/+files/Dependencies.txt text/plain; charset="utf-8" https://bugs.launchpad.net/bugs/354522/+attachment/558093/+files/AlsaDevices.txt text/plain https://bugs.launchpad.net/bugs/354522/+attachment/558094/+files/AplayDevices.txt text/plain https://bugs.launchpad.net/bugs/354522/+attachment/558095/+files/ArecordDevices.txt text/plain https://bugs.launchpad.net/bugs/354522/+attachment/558096/+files/BootDmesg.txt text/plain https://bugs.launchpad.net/bugs/354522/+attachment/558097/+files/Card0.Amixer.values.txt text/plain https://bugs.launchpad.net/bugs/354522/+attachment/558098/+files/Card0.Codecs.codec.0.txt text/plain https://bugs.launchpad.net/bugs/354522/+attachment/558099/+files/Card0.Codecs.codec.1.txt text/plain https://bugs.launchpad.net/bugs/354522/+attachment/558100/+files/CurrentDmesg.txt text/plain https://bugs.launchpad.net/bugs/354522/+attachment/558101/+files/Dependencies.txt text/plain https://bugs.launchpad.net/bugs/354522/+attachment/558102/+files/PciMultimedia.txt text/plain patches: tags: amd64 apport-bug subscribers: Aleksey Sadovoy (lex-onm) RCC2k9 (robertoc04) Alain Kalker (miki4242) Luke Yelavich (themuso) bizietto (erbizionostro) Marco A L Barbosa (malbarbo) ogobeone (biofuelwatcher) alej0 (alej0varas) task: gnome-orca status: Invalid date-created: Mon, 18 May 2009 06:17:15 -0000 date-left-new: Wed, 19 May 2010 03:23:06 -0000 date-closed: Wed, 19 May 2010 03:23:06 -0000 reporter: Beth Koenig (bethko) importance: Undecided assignee: milestone: task: portaudio19 (Ubuntu) status: Confirmed date-created: Fri, 03 Apr 2009 14:27:34 -0000 date-left-new: Sat, 11 Apr 2009 01:23:25 -0000 date-confirmed: Sat, 11 Apr 2009 01:23:25 -0000 reporter: Aleksey Sadovoy (lex-onm) importance: Medium component: universe assignee: milestone: Content-Type: multipart/mixed; boundary="===============8096894233973585798==" MIME-Version: 1.0 --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Binary package hint: espeak i am using orca and after reboot i noticed that espeak sound started to be unrecognizable. it just cut end and start of the sound, so i am able to listen just long phrases (really the midle of them). probably, it is related to the portaudio, becouse some another program i have (which also uses portaudio) has similar problem. ProblemType: Bug Architecture: amd64 DistroRelease: Ubuntu 9.04 Package: espeak 1.40.02-0ubuntu1 ProcEnviron: LANG=3Dru_UA.UTF-8 SHELL=3D/bin/bash SourcePackage: espeak Uname: Linux 2.6.28-11-generic x86_64 --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Fri, 03 Apr 2009 14:27:34 -0000 Message-Id: <20090403142738.9066.97899.malone@palladium.canonical.com> --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: RCC2k9 (robertoc04) Date: Fri, 03 Apr 2009 16:06:12 -0000 Message-Id: <20090403160612.10027.14053.malone@potassium.ubuntu.com> I'm also experiencing this bug with Ubuntu 9.04 Beta (32-bit version). It makes Orca unusable. Note that I have confirmed the problem is with espeak, not with orca, because Orca runs fine with Festival. Unfortunately, Festival doesn't have as many languages as eSpeak, so we need to fix espeak, please. --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Alain Kalker (miki4242) Date: Mon, 06 Apr 2009 01:46:03 -0000 Message-Id: <20090406014603.9558.28349.malone@potassium.ubuntu.com> Please try the following command: $ LIBASOUND_DEBUG=3D1 espeak "This is a test." This should speak the text. If (instead) you get lots of ALSA ERRORs, one of which is similar to: ALSA ERROR hw_params: set (ACCESS) value =3D MMAP_INTERLEAVED : Invalid argument then this is a known problem with libportaudio: it doesn't work with audio drivers which don't support mmap (PulseAudio in particular). More info here: http://www.nabble.com/-PATCH--Support-ALSA-without-mmap-(e.g.-PulseAudio)-t= d20403320.html --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Alain Kalker (miki4242) Date: Mon, 06 Apr 2009 02:49:40 -0000 Message-Id: <20090406024941.7272.89327.malone@gangotri.canonical.com> Nevermind the above, portaudio19 seems to have the mmap patch applied, so this must be a different problem. --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Alain Kalker (miki4242) Date: Mon, 06 Apr 2009 06:51:17 -0000 Message-Id: <20090406065117.7380.49242.malone@gangotri.canonical.com> The problem does seem to be related to portaudio. I have rebuilt espeak against portaudio v18 (it currently uses v19), and go= t espeak to speak without too many hiccups. I have tested it with orca, while navigating apps and webpages and listenin= g for longer periods, without any crashes. Every so often there appears to be a very short stutter at the beginning of= a sentence, when espeak hasn't spoken for a while. Please try my rebuilt packages at my PPA: https://launchpad.net/~miki4242/+archive/ppa Any feedback is very welcome. --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Mon, 06 Apr 2009 07:17:54 -0000 Message-Id: <20090406071754.1556.40802.malone@gandwana.canonical.com> >The problem does seem to be related to portaudio. Feel free to reassign the bug. >I have rebuilt espeak against portaudio v18 (it currently uses v19), and g= ot espeak to speak without too many hiccups. Thanks, but i want portaudio19 working, because i have program which depend= s on 19 version (i build it from source) Also, "to speak without too many hiccups" - is confusing to me. i would lik= e to work with clear voice, as it was a week ago. Again thanks for your time! --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Jonathan Duddington (jonsd) Date: Mon, 06 Apr 2009 09:31:03 -0000 Message-Id: <20090406093103.7380.67688.malone@gangotri.canonical.com> Using the Ubuntu 9.04 beta live-cd, I found that doing the command: espeak "hello world 1 2 3 4 5" produces what sounds like very fast garbled speech on one computer occasionally, but always (every time) on another. On the computer where the fault occurs always, I then changed to the Kububtu 9.04 beta live-cd and added the same eSpeak and portaudio files (Kubuntu doesn't include eSpeak on the live-cd). The problem did not occur with Kubuntu 9.04. I also added the same eSpeak and Portaudio files to the installed version of Linux (Kubuntu 8.04) and the problem did not occur. So it seems that this problem occurs in Ubuntu 9.04 beta, but not if the same eSpeak and Portaudio files are copied onto Kubuntu 9.04 beta, or Kubuntu 8.04. Is this a clue? On Kubuntu, I did notice a click sound at the start of some speech (dependi= ng on the initial word) when using the eSpeak which is compiled to use libp= ortaudio.so.2 which does not occur with eSpeak which uses libportaudio.so.0= . For example: espeak -veo "e". It is not present if the eSpeak speech is output to a WAV file (espeak -w out.wav -veo "e"). This may be related, or it may be a separate problem with eSpeak/portaudio/alsa. --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Alain Kalker (miki4242) Date: Mon, 06 Apr 2009 09:59:56 -0000 Message-Id: <20090406095957.9558.87732.malone@potassium.ubuntu.com> Aleksey, Mixing applications which use portaudio v18 or v19 on the same system shoul= d be no problem, because the shared libraries have different 'sonames': /us= r/lib/libportaudio.so.0 (for v18) versus /usr/lib/libportaudio.so.2 (for v1= 9), and the linker will find the right portaudio shared library to go with = a particular application. However, you should take care when rebuilding applications which use portau= dio from source, because there can only be one portaudio*-dev package insta= lled at one time. Jonathan, Very interesting, I will look into that. --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Steve Langasek (vorlon) Date: Sat, 11 Apr 2009 01:23:22 -0000 Message-Id: <20090411012324.774.11834.malone@palladium.canonical.com> If this happens with Ubuntu but not with Kubuntu, then one relevant difference is the use of pulseaudio by default on Ubuntu only. I'm subscribing Luke Yelavich to this bug to have a look, since he's our a11y and audio expert. Also, FWIW I'm unable to reproduce the problem in question here, so this is probably a hardware-dependent problem. --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Sat, 11 Apr 2009 07:14:17 -0000 Message-Id: <20090411071417.23831.99714.malone@gangotri.canonical.com> Alain Kalker: >Mixing applications which use portaudio v18 or v19 on the same system shou= ld be no problem, because the shared=20 >libraries have different 'sonames': /usr/lib/libportaudio.so.0 (for v18) v= ersus /usr/lib/libportaudio.so.2 (for v19),=20 >and the linker will find the right portaudio shared library to go with a p= articular application. yes, but if portaudio19 doesn't work this makes no sence. I updated my system with aptitude full-upgrade and problem still exists. Other system sounds are playied correctly, including totem player and gnome sound effects. So probably it is bug in portaudio, not in pulseaudio for my hardvare. Also, note than when i firstly installed ubuntu 9.04 alpha6 this problem didn't exist for me. --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Tue, 14 Apr 2009 14:22:18 -0000 Message-Id: <20090414142218.22241.74167.malone@palladium.canonical.com> Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: lex 3313 F.... mixer_applet2 Card0.Amixer.info: Card hw:0 'Intel'/'HDA Intel at 0xfe0f8000 irq 20' Mixer name : 'Realtek ALC883' Components : 'HDA:10ec0883,14623ff3,00100002 HDA:11c11040,11c10001,00100= 200' Controls : 27 Simple ctrls : 16 DistroRelease: Ubuntu 9.04 Package: alsa-base 1.0.18.dfsg-1ubuntu8 PackageArchitecture: all ProcEnviron: SHELL=3D/bin/bash LANG=3Dru_UA.UTF-8 Uname: Linux 2.6.28-11-generic x86_64 UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Tue, 14 Apr 2009 14:22:20 -0000 Message-Id: <20090414142220.22241.55907.malone@palladium.canonical.com> --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Tue, 14 Apr 2009 14:22:21 -0000 Message-Id: <20090414142221.15252.38303.malone@gangotri.canonical.com> --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Tue, 14 Apr 2009 14:22:23 -0000 Message-Id: <20090414142223.794.12271.malone@potassium.ubuntu.com> --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Tue, 14 Apr 2009 14:22:26 -0000 Message-Id: <20090414142226.22241.50646.malone@palladium.canonical.com> --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Tue, 14 Apr 2009 14:22:28 -0000 Message-Id: <20090414142228.794.91485.malone@potassium.ubuntu.com> --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Tue, 14 Apr 2009 14:22:29 -0000 Message-Id: <20090414142229.15252.32860.malone@gangotri.canonical.com> --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Tue, 14 Apr 2009 14:22:31 -0000 Message-Id: <20090414142231.794.98044.malone@potassium.ubuntu.com> --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Tue, 14 Apr 2009 14:22:34 -0000 Message-Id: <20090414142234.25260.74189.malone@gandwana.canonical.com> --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Tue, 14 Apr 2009 14:22:42 -0000 Message-Id: <20090414142242.794.46227.malone@potassium.ubuntu.com> --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Tue, 14 Apr 2009 14:22:44 -0000 Message-Id: <20090414142244.794.14698.malone@potassium.ubuntu.com> --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Wed, 15 Apr 2009 19:38:35 -0000 Message-Id: <20090415193836.26640.5879.malone@potassium.ubuntu.com> with guidance of Dtchen on ubuntu-devel i tried running espeak without pulseaudio (pasuspender -- espeak "hello world 1 2 3") and installing a test kernel with alsa fixes, both without success. --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Thu, 30 Apr 2009 16:49:06 -0000 Message-Id: <20090430164906.13979.1477.malone@gandwana.canonical.com> Is there any progress on this issue? Really, espeak is unusable in ubuntu jaunty. As i noted above, in alpha6 this issue didn't exist, so we can just downgrade to previous portaudio ubuntu package. Also, why this bug isn't noted in jaunty's release notes? --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: linuxrules (linuxrules) Date: Thu, 07 May 2009 00:28:44 -0000 Message-Id: <20090507002844.31121.48340.malone@gangotri.canonical.com> look here I have same issue=20 https://answers.launchpad.net/ubuntu/+question/70026 --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: edgar-rft (edgar-rft) Date: Thu, 07 May 2009 02:38:00 -0000 Message-Id: <20090507023800.32701.11264.malone@potassium.ubuntu.com> Hello all, I think I have the same problem with espeak on Ubuntu Jaunty i386 with Gnome. With orca or espeak on the command line I only get farting noises out of my speakers (sorry, but this exactly is what it sounds like). I already did what is written in Part A of: Ubuntu HOWTO - PulseAudio Fixes & System-Wide Equalizer Support (http://ubuntuforums.org/showthread.php?t=3D789578) I also compiled several versions of espeak-1.40.02 myself by changing the Makefile to one of these: AUDIO =3D portaudio AUDIO =3D pulseaudio with portaudio18 and portaudio19 (Ubuntu versions), together with exchanging the "portaudio.h" in "espeak-1.40.02/src" to the appropriate versions. All-in-all I compiled four different versions, but no success, neither with pulseaudio, portaudio18 nor portaudio19. I tried to compile espeak-1.40.02 with a portaudio19 SVN snapshot (May 5th 2009) but instantly got overloaded with ALSA errors so I decided to dump it. I would be willing to do further investigations but need some hints where to search next. Here's what I get with espeak-1.40.02 on the command line: --- xterm output --- bash$> LIBASOUND_DEBUG=3D1 espeak "This is a test." ALSA ERROR hw_params: set (FORMAT) value =3D S32_LE : Invalid argument ACCESS: MMAP_INTERLEAVED FORMAT: S16_LE SUBFORMAT: STD SAMPLE_BITS: 16 FRAME_BITS: [32 96] CHANNELS: [2 6] RATE: [48000 96000] PERIOD_TIME: (31 341334) PERIOD_SIZE: [3 16384] PERIOD_BYTES: [32 65536] PERIODS: [1 1024] BUFFER_TIME: (31 341334) BUFFER_SIZE: [3 16384] BUFFER_BYTES: [32 65536] TICK_TIME: ALL ALSA ERROR hw_params: set (FORMAT) value =3D S32_BE : Invalid argument ACCESS: MMAP_INTERLEAVED FORMAT: S16_LE SUBFORMAT: STD SAMPLE_BITS: 16 FRAME_BITS: [32 96] CHANNELS: [2 6] RATE: [48000 96000] PERIOD_TIME: (31 341334) PERIOD_SIZE: [3 16384] PERIOD_BYTES: [32 65536] PERIODS: [1 1024] BUFFER_TIME: (31 341334) BUFFER_SIZE: [3 16384] BUFFER_BYTES: [32 65536] TICK_TIME: ALL ALSA ERROR hw_params: set (ACCESS) value =3D MMAP_INTERLEAVED : Invalid argument ACCESS: RW_INTERLEAVED FORMAT: U8 S16_LE S16_BE S32_LE S32_BE FLOAT_LE FLOAT_BE MU_LAW A_LAW SUBFORMAT: STD SAMPLE_BITS: [8 32] FRAME_BITS: [8 1024] CHANNELS: [1 32] RATE: [1 192000] PERIOD_TIME: (5 4294967295) PERIOD_SIZE: [1 1398102) PERIOD_BYTES: [128 1398102) PERIODS: [3 1024] BUFFER_TIME: (15 4294967295] BUFFER_SIZE: [3 4194304] BUFFER_BYTES: [384 4194304] TICK_TIME: ALL --- end of xterm output --- More information on request, this is already long enough. :-) Thanks, - edgar --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: linuxrules (linuxrules) Date: Fri, 08 May 2009 02:12:48 -0000 Message-Id: <20090508021248.25685.18198.malone@potassium.ubuntu.com> yes it does, couldn't say it beter myself --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: edgar-rft (edgar-rft) Date: Sat, 09 May 2009 08:12:10 -0000 Message-Id: <20090509081210.3500.77101.malone@potassium.ubuntu.com> Hi all, I only wanted to tell that after several days of reading all the pulseaudio/portaudio/alsa specs over and over again I got orca and espeak working on Ubuntu-9.04-i386 with Gnome. The problem is that I have fiddled so much in the Ubuntu audio configuration that at the moment I still have no EXACT idea what the real problem was. But everything looks as if it has something to do with the Ubuntu pulseaudio setup and NOT with portaudio. I still will have to test the whole stuff again with a plain Ubuntu installation, but this still will last some more days. However, you will need to re-compile espeak yourself to make it work. Here are the most important steps I did: Download the ORIGINAL espeak source code from: http://espeak.sourceforge.net/download.html and unpack it into a sub-folder of your home directory. Ignore the espeak "ReadMe" file because the instructions there are rather useless and misleading for Ubuntu and pulseaudio. In particular, you DO NOT NEED to adapt the "portaudio.h" files in the "espeak/src" directory to compile espeak with pulseaudio. I can compile espeak on Ubuntu with all "portaudio[xx].h" files in the "espeak/src" directory deleted what makes me assume that the Ubuntu problems have nothing to do with portaudio at all. Now go into the "espeak/src" directory and modify the Makefile: bash$ cd /.../espeak-1.40.02-source/src bash$ gedit Makefile Change the AUDIO setting in the Makefile from "portaudio" to "pulseaudio" as shown below and save the modified Makefile back to disk: --- /espeak-1.40.02-source/src/Makefile --- #AUDIO =3D portaudio AUDIO =3D pulseaudio #AUDIO =3D sada --- end of /espeak-1.40.02-source/src/Makefile --- Espeak will use the Ubuntu "/usr/include/pulse/pulseaudio.h" file by default, you do not need to change anything else but the Makefile (and maybe the Ubuntu pulseaudio setup, what still needs to be verified by testing on a plain Ubuntu install during the next days). Now, in the "espeak/src" directory, type "make": bash$ make 1. NOTE: espeak will NOT work correctly if started after "make" from the "/espeak/src" directory, because it still loads the non-working Ubuntu "/usr/lib/libespeak.so.1.1.40" library. 2. NOTE: First I had espeak installed in "/usr/local/bin" by modifying the PREFIX setting in the Makefile but it didn't work neither. The only way to make it work correctly seems to install espeak in "/usr/bin" (where it finally worked). 3. BEWARE: "make install" will OVERWRITE the Ubuntu files and there is no "uninstall" target defined in the Makefile! The affected Ubuntu files are: /usr/bin/espeak /usr/lib/libespeak.so.1 # link to libespeak.so.1.1.40 /usr/lib/libespeak.so.1.1.40 /usr/share/espeak-data # the entire directory Either copy the files to a safe backup-location before you type "make install" or in case something goes wrong, you can restore the original Ubuntu files by re-installing the packages: espeak espeak-data libespeak1 The self-compiled espeak will also install the files: /usr/lib/libespeak.a /usr/lib/libespeak.so # also a link to libespeak.so.1.1.40 In case of an un-installation you may have to delete these files yourself manually on the bash command line. Now, after reading about all these quirks and warnings, if you're still happy and in adventurous mood, type: bash$ sudo make install and try out wether espeak works now on your system. :-) I will test the whole stuff again during the next few days. =20 - edgar --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: edgar-rft (edgar-rft) Date: Mon, 11 May 2009 04:44:46 -0000 Message-Id: <20090511044446.638.15751.malone@gandwana.canonical.com> Hi all, Preface: I hope this is the last and final mega-post on this page. Note to the developers: this bug has NOTHING to do with portaudio and there is NO NEED to change the Ubuntu audio setup. It was the wrong information in the espeak "ReadMe" file which made me assume that this could have something to do with portaudio. Everything looks as if the Ubuntu espeak packages have just been copied from Debian without checking for pulseaudio compatibility. Here is how I fixed espeak on Ubuntu-9.04-i386 with Gnome. --- How to compile espeak with PulseAudio support on Ubuntu-9.04 --- Using an Ubuntu-9.04-i386 DVD I did a Ubuntu "Desktop" installation including a subsequent package update (May 11th 2009). For a test I started orca by typing "orca" into the Gnome terminal but instead of speech I got only weird noises. I copied the ORIGINAL espeak source code from http://espeak.sourceforge.net/download.html into a sub-folder of my home directory: bash ~/$ mkdir -p downloads/espeak bash ~/$ cp espeak-1.40.02-source.zip ~/downloads/espeak I unzipped the espeak source package and changed the working directory to ".../espeak-1.40.02/src": bash ~/$ cd downloads/espeak bash ~/downloads/espeak$ unzip espeak-1.40.02-source.zip bash ~/downloads/espeak$ cd espeak-1.40.02-source/src/ bash ~/downloads/espeak/espeak-1.40.02-source/src$ I modified the Makefile in the espeak "src" directory by typing: bash ~/downloads/espeak/espeak-1.40.02-source/src$ gedit Makefile With gedit I changed the AUDIO settings in the Makefile as shown below and saved the modified Makefile back to disk. --- espeak-1.40.02-source/src/Makefile line 27-29 --- #AUDIO =3D portaudio AUDIO =3D pulseaudio #AUDIO =3D sada --- end of espeak-1.40.02-source/src/Makefile --- To be able to compile espeak with pulseaudio support I needed the following Ubuntu packages to be installed: build-essential libpulse-dev (including all dependencies) Then I typed "make", "sudo make install" and "sudo ldconfig": bash ~/downloads/espeak/espeak-1.40.02-source/src$ make bash ~/downloads/espeak/espeak-1.40.02-source/src$ sudo make install bash ~/downloads/espeak/espeak-1.40.02-source/src$ sudo ldconfig Now, if I type "orca", I get speech instead of weird noises. There is NO NEED to change anything in the Ubuntu-9.04 audio setup. ------------------------- Emergency Rescue ---------------------------- Because there is no "uninstall" target defined in the espeak Makefile, here is how to remove a self-compiled espeak from a Ubuntu system: sudo rm -f /usr/bin/espeak sudo rm -f /usr/lib/libespeak.a sudo rm -f /usr/lib/libespeak.so sudo rm -f /usr/lib/libespeak.so.1 sudo rm -f /usr/lib/libespeak.so.1.1.40 sudo rm -f /usr/include/espeak_lib.h sudo rm -rf /usr/share/espeak-data Then re-install the following Ubuntu packages: espeak espeak-data libespeak1 If I now type "orca" I get exactly the same weird noises as before. :-) - edgar --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Aleksey Sadovoy (lex-onm) Date: Mon, 11 May 2009 11:13:33 -0000 Message-Id: <20090511111333.3500.21332.malone@potassium.ubuntu.com> Hi edgar, The actual portaudio bug in question exists, you found just a workaround: compile espeak with pulseaudio backend instead of portaudio backend. You've got a working espeak, but portaudio still doesn't work correctly. You can test it with other programs, which use portaudio for sound output. However, i tested only with one of such apps (besides espeak) --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: edgar-rft (edgar-rft) Date: Tue, 12 May 2009 01:43:24 -0000 Message-Id: <20090512014324.30330.69194.malone@palladium.canonical.com> Alexey: The portaudio bug exists, you found just a workaround... Thanks to Alexey for this clarifivation. :-) I'm somehow involved in the Audacity project (if you type "edgar-rft" into Google you'll get several pages of my stupid talking) and also work with lots of other (port-) audio software. I'm mainly work=C3=ADng with Common Lisp and I'm a rather bad C/C++ program= mer but if anybody can give me a list of software with similar portaudio problems I would be willing to do further investigations. - edgar --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: ogobeone (biofuelwatcher) Date: Sun, 31 May 2009 06:14:08 -0000 Message-Id: <20090531061408.28521.34366.malone@palladium.canonical.com> I'm a newbie to Ubuntu and I'm no programmer, at least not at the level I'm seeing here. But I just set up an Ubuntu computer and have tried to do the same things I do in Windows XP for recreation, one of which is to read a lot. And I get tired of reading. So I get Says Me to do it for me. I tried to get eSpeak and Festival to work all day today. I see it's a current concern. I can't get either one to say a word. espeak makes clipped grunts (as does Orca) and Festival says nothing. I tried edgar-rft's compile method of original source code and it just gave me errors. I used gksudo instead of sudo. I may have to keep using Says Me in Windows. Too bad. I feel a little safer being on line in Linux. So, folks, I hope Ubuntu figures this out and lets me download an update for it that works, because it's hard to read after a hard day of work. --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: alej0 (alej0varas) Date: Wed, 08 Jul 2009 00:34:13 -0000 Message-Id: <20090708003413.26304.61752.malone@gangotri.canonical.com> This is not a bug-fix, but is a simple solution for some cases. You can try this: $ espeak --stdout "Hello, World" | aplay It works fine for me and there is not need to compile or install. Whit -f (man espeak) you can read from files. The magic here is "--stdout" and "| aplay". Fom espeak man page: " --stdout Write speech output to stdout" From bash man page "Pipelines A pipeline is a sequence of one or more commands separated by the ch= aracter |" HTH --===============8096894233973585798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: David Sugar (dyfet-deactivatedaccount) Date: Thu, 09 Jul 2009 00:26:24 -0000 Message-Id: <20090709002624.9281.15658.malone@gangotri.canonical.com> In Jaunty we have: portaudio19-19+svn20071207 In Karmic we currently have: portaudio19_19+svn20090620 Offhand, I do not know if this finally fixes these specific issues, however. Also rebuilding the newer Karmic package on Jaunty may break abi's, depending on what is different in these svn snapshots, so it's not as simple unless all dependent apps are also rebuilt & updated... --===============8096894233973585798==--