[Asterisk-Dev] Festival Module

Jeff Clark h0tw1r3 at gmail.com
Thu Oct 7 14:28:40 MST 2004


On Thu, 7 Oct 2004 13:41:57 -0700 (PDT), Chris Albertson
<chrisalbertson90278 at yahoo.com> wrote:
> 
> --- Jeff Clark <h0tw1r3 at gmail.com> wrote:
> 
> > After looking into the festival module for the first time, I noticed
> > that it required users to compile a patched version.  I for one hate
> > to doing such things (`apt-get install festival` seems reasonable to
> > me).  Reading the festival docs, I came up with an alternative
> > festivalcommand:
> >
> > (utt.send.wave.client (utt.wave.resample (utt.wave.rescale (utt.synth
> > (eval (list 'Utterance 'Text "%s"))) 5 ) 8000 ))\n
> 
> 
> Two things about the above.
> 1) What does this do to your CPU utilization?  Maybe you don't care
> but on a larger system with many users you might care.
> 

Unless I'm reading the festival patches asterisk includes incorrectly,
the cpu utilization should (if anything) be less.  While I have not
gone through all of festival's code, it at the very least would
eliminate the tmp file being created in the utt_send_wave_asterisk
function.

> 2) You are still using Festival is the "dumb mode" that was intended
> only as a demo.  You really want to send marked up text so
> Festival can get the inflection, timming and tone closer to correct.
> 

You make a very good point.  I am not familiar with festival's text
markup, but I will look into it.  My only point was to eliminate a
patch to festival.  As you say, it's only meant as a demo, but it's
nice to try out a demo without recompiling a bunch of supporting
software.

Do you have an suggestions on expanding the app_festival module to be smarter?

-Jeff



More information about the asterisk-dev mailing list