Sergio Oller | 7 Aug 2010 17:50
Picon
Gravatar

Re: [festival-talk] Native alsa support

Hi Pierre,

2010/8/7 Pierre Lorenzon <devel <at> pollock-nageoire.net>
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.


Pierre


Regards,

Sergio

luixsansan | 12 Aug 2010 11:42
Picon
Favicon

Converting FestVox Voices

Hello,
 
I am trying to build a spanish voice for flite, I am using the diphone voice that comes with Festival festvox_ellpc11k and I am trying to follow chapter 8 from flite's manual.
 
I have succesfully compiled Flite and FestVox,
 
The first thing that intrigues me is the paragraph
 
"This will read `etc/voice.defs', which should have been created by the FestVox build process (except in very old versions of FestVox)."
 
I am using FestVox2.1 which is the version I can download form the page and neither the directory nor the file are created.
 
I have created manually the folder and for voice.defs I wrote
 
FV_INST=cmu
FV_LANG=es
FV_NAME=el
FV_TYPE=diphone
FV_VOICENAME=$FV_INST"_"$FV_LANG"_"$FV_NAME
FV_FULLVOICENAME=$FV_VOICENAME"_"$FV_TYPE
 
After runnig setup_flite I have a folder flite with some files in it, but when I run build_flite I get some errors, which is the correct procedure?, how do I set a reference to festival/lib/voices/spanish/el_diphone which is the voice I want to convert?

In folder "vox_files" there is a subfolder "es", which I suppose it corresponds to spanish, How can I use these files for my purpose?
 
Thank you very much for your help.
 
Luis.
 
Ross Linnett | 12 Aug 2010 12:24
Favicon

Out of office

Hi.

I will be out of the office until the 25th August.

For any urgent enquiries please contact rob@...

Best regards

Ross

Alan W Black | 12 Aug 2010 13:33
Picon
Favicon

Re: Converting FestVox Voices

luixsansan@... wrote:
> Hello,
> 
> I am trying to build a spanish voice for flite, I am using the diphone voice that comes with Festival
festvox_ellpc11k and I am trying to follow chapter 8 from flite's manual.
> 
> I have succesfully compiled Flite and FestVox,
> 
> The first thing that intrigues me is the paragraph
> 
> "This will read `etc/voice.defs', which should have been created by the FestVox build process (except in
very old versions of FestVox)."
> 
> I am using FestVox2.1 which is the version I can download form the page and neither the directory nor the
file are created.
> 
> I have created manually the folder and for voice.defs I wrote
> 
> FV_INST=cmu
> FV_LANG=es
> FV_NAME=el
> FV_TYPE=diphone
> FV_VOICENAME=$FV_INST"_"$FV_LANG"_"$FV_NAME
> FV_FULLVOICENAME=$FV_VOICENAME"_"$FV_TYPE
> 
> After runnig setup_flite I have a folder flite with some files in it, but when I run build_flite I get some
errors, which is the correct procedure?, how do I set a reference to
festival/lib/voices/spanish/el_diphone which is the voice I want to convert?
> 
> 
> In folder "vox_files" there is a subfolder "es", which I suppose it corresponds to spanish, How can I use
these files for my purpose?
> 

Actually this isn't directly possible with the "grouped" version of the 
diphones, the flite conversion code requires the source version of the 
diphone files which we've not distributed (and I'm not sure where they 
are).  There have been others though who I believe have a spanish 
diphone voice in flite.

Alan

> Thank you very much for your help.
> 
> Luis.
> 

Nicholas Volk | 13 Aug 2010 13:26
Picon
Favicon

various scripts: awk '{print $2}' $PROMPTFILE

Hi,

Various scripts, such as make_pm_wave and make_mcep contain the following
line

  awk '{print $2}' $PROMPTFILE |

The purpose of this line is to pick the file names from a data file.
Nice idea, but the solution is quick&dirty and it has some problems.
I had to read the scripts and add a space after the starting (-brackets to
get my old files work. (Maybe this hack is a documented feature, Then I
have just missed it.) The current solution is less than elegant and it
breaks away from the lisp-like notation.
Also, I for one, like to add lisp-style comments and other metadata to my
data files. Therefore I'd like to suggest a replacement:

  festival -b '(let ((flist (load "'$PROMPTFILE'" t)) a) (while flist
(begin (set! a (caar flist)) (format t "%s\n" a) (set! flist (cdr
flist)))))' |

It's more complex, but this version is conserned only about the proper use
of brackets...

br,
  Nicholas

Ross Linnett | 13 Aug 2010 14:16
Favicon

Out of office

Hi.

I will be out of the office until the 25th August.

For any urgent enquiries please contact rob@...

Best regards

Ross

Nickolay V. Shmyrev | 21 Aug 2010 23:17
Picon
Favicon

Re: various scripts: awk '{print $2}' $PROMPTFILE

В Птн, 13/08/2010 в 14:26 +0300, Nicholas Volk пишет:
> Hi,
> 
> Various scripts, such as make_pm_wave and make_mcep contain the following
> line
> 
>   awk '{print $2}' $PROMPTFILE |
> 
> The purpose of this line is to pick the file names from a data file.
> Nice idea, but the solution is quick&dirty and it has some problems.
> I had to read the scripts and add a space after the starting (-brackets to
> get my old files work. (Maybe this hack is a documented feature, Then I
> have just missed it.) The current solution is less than elegant and it
> breaks away from the lisp-like notation.
> Also, I for one, like to add lisp-style comments and other metadata to my
> data files. Therefore I'd like to suggest a replacement:
> 
>   festival -b '(let ((flist (load "'$PROMPTFILE'" t)) a) (while flist
> (begin (set! a (caar flist)) (format t "%s\n" a) (set! flist (cdr
> flist)))))' |
> 
> It's more complex, but this version is conserned only about the proper use
> of brackets...

Hello Nicholas

I've committed this thing to festvox in our tree. We'll merge there
build fixes and cleanups soon I think. So you are welcome to try and
submit more proposals.

https://svn.berlios.de/viewvc/festlang/trunk/festvox/

Overall, I think this is just a half-step to turning build process into
something managable running under real programming language not just a
collection of shell scripts.

Ross Linnett | 22 Aug 2010 00:10
Favicon

Out of office

Hi.

I will be out of the office until the 25th August.

For any urgent enquiries please contact rob@...

Best regards

Ross


Gmane