I use Festival speech synthesis when I configure Asterisk and to debug my dial
plan.

For day to day use I don't use Festival, and as a result I don't want the
Festival server
running all the time so I don't use the festival.conf within asterisk, but I
rather use

macro sayText(text) {
    sayTextfile = "/tmp/asterisk${RAND()}";
    System(echo "${text}"|/usr/local/bin/newtext2wave -otype ulaw
>${sayTextFile}.ulaw);
    Playback(${sayTextFile});
    System(rm -f ${sayTextFile}.ulaw);
    return;
}

within the dial plan.

The trouble is that text2wave gets a Segmentation fault.
I found an update text2wave that does work referred to in

http://ngoinabox.mahiti.org/howtos/archive/2010/01/22/installing-festival-and
-setting-voice-to-female

the fix is located at

http://irlp.kc6hur.net/downloads/text2wave

Reply via email to