[Asterisk-Users] Festival clicks instead of sound and disconnects.

2006-01-02 Thread Robert La Ferla
When I dial a festival extension (1222), all I hear is a series of fast 
clicks and then it hangups.  I do not have a sound card installed but I 
would think I don't need one.  Is a sound card necessary?  Should I use 
a script instead of the scheme code?  Can someone who has this working 
send me their festival configuration?


Thanks!

CONFIG INFO:

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.

% festival --server /etc/myfestconfig
serverMon Jan  2 15:27:37 2006 : Festival server started on port 1314
client(1) Mon Jan  2 15:27:51 2006 : accepted from localhost
client(1) Mon Jan  2 15:27:51 2006 : disconnected
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Festival clicks instead of sound and disconnects.

2006-01-02 Thread Robert La Ferla
Let me add that text2wave works fine.  Something is wrong with the 
Asterisk = Festival server communications.  Ideas?


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users