7 Aug 2010 17:50
Re: [festival-talk] Native alsa support
Hi Pierre,
2010/8/7 Pierre Lorenzon <devel <at> pollock-nageoire.net>
Regards,
Sergio
message from Pierre Lorenzon <devel-liuIhKsFhnfH/hB1ExvDNuTW4wlIGRCZ@public.gmane.org> to festival-talk
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Hi,
I wonder that nobody never developed a native alsa support in
festival. When using alsa one must use an application such as
aplay as an external command. But it is not convenient to have
control on the flu once it has been sent via aplay. The only
thing seems to try to get the process pid and try to kill it to
stop the flu. One could do much better things using alsa
library especially if one want to implement a kind of
scheduler. If any attempt in this direction has never been made
I'll probably try to write a few lines of c/c++ code to
implement such a think. Anyway I don't really want to write
code just for writing code and if something already exists I
would appreciate that someone let me know where !
In the file festival/config/modules/linux16_audio.mak i find
following
>>> -- CODE
ifeq ($(LINUXAUDIO),alsa)
AUDIO_DEFINES += -DSUPPORT_ALSALINUX
MODULE_LIBS += -lasound
endif
>>> -- End CODE
but it seems to refer to nothing in the reste of the festival
source code. I suspect that this code was added to support an
alsa module in the case it would be developed but it has not
been yet.
Finally googling I did not find anything !
Does someone have an idea ?
Check out speech_tools/audio/linux_sound.cc . Alsa support is there.
You need ALSA headers to build Festival and Speech Tools with Alsa Support.
In Ubuntu Alsa headers are in the package libasound2-dev.
There exists also a native pulseaudio module, however I think it did not make it to the beta.
If you want it you can check out:
svn checkout http://svn.berlios.de/svnroot/repos/festlang/branches/devel2010/2.0.95/pulseaudio festsuite
Also, after ./configure and before make speech_tools, edit config/config and uncomment:
## PulseAudio sound server
INCLUDE_MODULES += PULSE_AUDIO
and make sure you have pulseaudio headers installed also (libpulse-dev I believe)
I hope this helps.
You need ALSA headers to build Festival and Speech Tools with Alsa Support.
In Ubuntu Alsa headers are in the package libasound2-dev.
There exists also a native pulseaudio module, however I think it did not make it to the beta.
If you want it you can check out:
svn checkout http://svn.berlios.de/svnroot/repos/festlang/branches/devel2010/2.0.95/pulseaudio festsuite
Also, after ./configure and before make speech_tools, edit config/config and uncomment:
## PulseAudio sound server
INCLUDE_MODULES += PULSE_AUDIO
and make sure you have pulseaudio headers installed also (libpulse-dev I believe)
I hope this helps.
Pierre
Regards,
Sergio
RSS Feed