-
#5723 |
Has anyone gotten Text to Speech to work with Visual Dial Plan? I have Festival successfully installed on my Centos 5.5 linux box, but it does not work with VDP. At this point I’ll try any other TTS engine supported by VDP as long as it works.
Does anyone out there have a working example?J
#5724 |Hello JamesArturo,
I used Festival with VDP a while ago and it worked.
I think the issue you are facing here is that you didn’t setup Festival with Asterisk.
The easiest way to setup Festival with Asterisk is to modify the festival configuration file.
Find the file festival.scm (should be in /etc, may also be hidden in /usr/share/festival, /usr/lib/festival or /usr/local/lib/festival) and add this command to it:;; Enable access to localhost (needed by debian users)
(set! server_access_list ‘(“localhost\\.localdomain” “localhost”));; set italian voice
;;(language_italian)
;;(set! voice_default ‘voice_pc_diphone);;; 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.”
(let ((wholeutt (utt.synth (eval (list ‘Utterance ‘Text string)))))
(utt.wave.resample wholeutt 8000)
(utt.wave.rescale wholeutt 5)
(utt.send.wave.client wholeutt)));;; Command for Asterisk end
Place this code anywhere within that file, except between other parentheses.
Then restart the Festival server.Now, it should work.
Raman
You must be logged in to reply to this topic.