[Asterisk-Users] Why no sound from festival?

Robert La Ferla robertlaferla at comcast.net
Sun Dec 25 22:56:52 MST 2005


I can't get festival to output any sound.  Any ideas?

I have festival 1.95 installed on Fedora Core 4.

% rpm -qa | grep fest
festival-1.95-3

% cat festival.conf
[general]
host=localhost
port=1314
usecache=yes
cachedir=/var/lib/asterisk/festivalcache/
festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n

I added this to the festival.scm:

;;; Command for Asterisk begin
(define (tts_textasterisk string mode)
    "(tts_textasterisk STRING MODE)
  Apply tts to STRING.  This function is specifically designed for
  use in server mode so a single function call may synthesize the string.
  This function name may be added to the server safe functions."
      (utt.send.wave.client (utt.wave.resample (utt.wave.rescale (utt.synth  

                    (eval (list 'Utterance 'Text string))) 5) 8000)))
;;; Command for Asterisk end

I start the festival server BEFORE Asterisk on the same server:

% festival_server -p 1314 -l /tmp &

I added this test extension:

; testing festival (text-to-speech app)
exten => 1222,1,Answer()
exten => 1222,n,Wait(1)
exten => 1222,n,Festival(mary had a little lamb)  ; do NOT use quotes 
around the string! if you use commas, you will have to escape them with 
a "\" (backslash).
exten => 1222,n,Hangup()

When I dial 1222, all I hear is a click and then hangup.

The festival_server.log file reads:

"Load server start /tmp/festival_server.scm"
stival port=1314
wrapper Mon Dec 26 00:48:29 EST 2005 : USING DEFAULT CONFIGURATION
wrapper Mon Dec 26 00:48:30 EST 2005 : waiting
server    Mon Dec 26 00:48:30 2005 : Festival server started on port 1314
client(1) Mon Dec 26 00:48:43 2005 : accepted from myhost
client(1) Mon Dec 26 00:48:43 2005 : disconnected





More information about the asterisk-users mailing list