http://www.freebsoft.org/speechd
It seems that speech dispatcher relies on an old version of the alsa-libs (libasound1), 0.5.8, and I am getting compile errors as I try to build. What version of alsa-lib do you have installed?
or is it a flite error: mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/include/ -I../../intl/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT spd_audio.lo -MD -MP -MF .deps/spd_audio.Tpo -c spd_audio.c -fPIC -DPIC -o .libs/spd_audio.o spd_audio.c:9:25: flite/flite.h: No such file or directory In file included from spd_audio.c:12: spd_audio.h:5:25: flite/flite.h: No such file or directory In file included from spd_audio.c:12: spd_audio.h:7: error: syntax error before '*' token spd_audio.h:8: error: syntax error before '*' token spd_audio.c:15: error: syntax error before '*' token spd_audio.c:15: warning: data definition has no type or storage class spd_audio.c:16: error: syntax error before '*' token spd_audio.c:16: warning: data definition has no type or storage class spd_audio.c:17: error: syntax error before '*' token spd_audio.c:17: warning: data definition has no type or storage class spd_audio.c:20: error: syntax error before '*' token spd_audio.c: In function `spd_audio_play_wave': spd_audio.c:24: error: `w' undeclared (first use in this function) spd_audio.c:24: error: (Each undeclared identifier is reported only once spd_audio.c:24: error: for each function it appears in.) spd_audio.c:35: error: `CST_AUDIOBUFFSIZE' undeclared (first use in this function) spd_audio.c: At top level: spd_audio.c:51: error: syntax error before '*' token spd_audio.c: In function `spd_audio_read_wave': spd_audio.c:54: error: `cst_wave' undeclared (first use in this function) spd_audio.c:54: error: `new' undeclared (first use in this function) spd_audio.c:55: error: syntax error before ')' token spd_audio.c: In function `spd_audio_play_file_wav': spd_audio.c:68: error: `cst_wave' undeclared (first use in this function) spd_audio.c:68: error: `wave' undeclared (first use in this function) spd_audio.c:69: error: syntax error before ')' token spd_audio.c: At top level: spd_audio.c:106: error: syntax error before '*' token spd_audio.c: In function `spd_audio_open': spd_audio.c:108: error: `w' undeclared (first use in this function) spd_audio.c:113: error: `CST_AUDIO_LINEAR16' undeclared (first use in this function) spd_audio.c:113: warning: assignment makes pointer from integer without a cast make[3]: *** [spd_audio.lo] Error 1 make[3]: Leaving directory `/home/jon/temp/speechd/speechd-0.2/src/audio' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/jon/temp/speechd/speechd-0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jon/temp/speechd/speechd-0.2' make: *** [all] Error 2
looks like a flite problem. We're installing headers in include, not include/flite... I'll take a look at fixing the flite ebuild.
if you do: mkdir /usr/include/flite mv /usr/include/cst* /usr/include/flite mv /usr/include/flite* /usr/include/flite (this will produce an "error" about not moving flite into itself, but that's fine.) does it work at that point?
This could get interesting, if I remember correctly, eflite requires the include stuff to be in /usr/include. I'll take a look at eflite again, to make sure.
I can do some sedage and symlinkage in flite to make it work so long as we always have either: #include <flite.h> or #inlude <flite/flite.h> I'd prefer the second to be standard, so Deedra, please verify what eflite wants, and I'll update the flite ebuild later...
Eflite is flexible, I can tell it where the includes are with the flite_include option, so it doesn't matter what we do to it:)
cp /usr/include/cst* /usr/include/flite && cp /usr/include/flite* /usr/include/flite That took care of the flite/flite.h warnings, but I still get the same errors in spd_audio.c, lines 17, 41, 113, and 130
since they aren't quite the same errors, I'll go ahead and post them: gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/ -I../../intl/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O3 -march=pentium4 -funroll-loops -pipe -MT spd_audio.lo -MD -MP -MF .deps/spd_audio.Tpo -c spd_audio.c -fPIC -DPIC -o .libs/spd_audio.o spd_audio.c:17: error: syntax error before '*' token spd_audio.c:17: warning: data definition has no type or storage class spd_audio.c: In function `spd_audio_play_wave': spd_audio.c:41: warning: passing arg 1 of `audio_write' makes integer from pointer without a cast spd_audio.c: In function `spd_audio_open': spd_audio.c:113: error: `CST_AUDIO_LINEAR16' undeclared (first use in this function) spd_audio.c:113: error: (Each undeclared identifier is reported only once spd_audio.c:113: error: for each function it appears in.) spd_audio.c:113: warning: assignment makes pointer from integer without a cast spd_audio.c: In function `spd_audio_close': spd_audio.c:130: warning: passing arg 1 of `audio_close' makes integer from pointer without a cast
grep CST_AUDIO_LINEAR16 /usr/include/cst_* produces nothing for me... what version of flite do they need in speech dispatcher?
I'm puttign together an ebuild for flite-1.2 hopefully that will clear this up...
$ grep CST_AUDIO_LINEAR16 * cst_audio.h: CST_AUDIO_LINEAR16 = 0, looks like it's in 1.2, try out that ebuild. I just comitted it.
Created attachment 27656 [details] app-accessibility/speech-dispatcher-0.2 ebuild not sure if I got all the DEPEND stuff right, you might want to check that, but it seems to emerge correctly. I also don't like that this ebuild places some files in /usr/bin/speechd-modules/ and I have not had much time to test it. I'm going ahead and posting the ebuild if someone wants to test it while I'm out for the evening. If no, I'll get around to it sometime.
it'd probably be best to move them to /usr/lib/speechd-modules... I've got a ton on my plate, so I don't have time to look at this tonight, sorry...
Created attachment 27662 [details] speech-dispatcher-0.2.ebuild hi ho, hi ho To /usr/lib you go What do you think this will break? How long will all the testing take? Hi ho, hi ho hi ho hi ho...
hmm... not to mess you up even further, but how about /usr/lib/speech-dispatcher-modules so as to avoid confusion with speechd...
Created attachment 27836 [details] speech-dispatcher-0.2.ebuild (/usr/lib/speech-dispatcher-modules) Alas poor speechd-modules. I knew them, eradicator; a folder of infinite tests and most questionable modules. And now, how abhorred in my hard drive it is. My RAM scoffs at it... Anyways, your wish is my command. The modules are moved to /usr/lib/speech-dispatcher-modules, but I still haven't gotten to test this much yet, and would appreciate input from anyone who does have a lot of time to thuroughly test the package.
i haven't looked at this too closely yet... does speech-dispatcher itself depend on alsa-lib? And if so, are you sure that the anciant 0.5 alsa-lib will actually work?
From the INSTALL file: You will need these components to compile Speech Dispatcher: - glib 2.0 (http://www.gtk.org) - libdotconf 1.0 (http://www.azzit.de/dotconf/) - pthreads >- libasound1 (0.5.8) - gcc and GNU make (http://www.gnu.org) - flite [we use it for sound track output] (http://cmuflite.org/)
in portage.