Hi I have installed Festival on the same box as asterisk and followed the
instructions to integrate it with asterisk.
Festival seems to work fine on its own performing text to speech from the
command line or via a file.
Asterisk answers the call but there is no speech. I can see no errors in the
Festival log file
The asterisk console shows
--Executing Answer("SIP/81801-c091", "") in a new stack
--Executing Festival("SIP/81801-c091", "mary had a little
lamb") in a new
stack
==Parsing '/etc/asterisk/festival.conf':Found
there is nothing else after this
If I start festival as festival --server I can see the output
Server 11:39:14 : Festival server started on port 1314
Client(1) 11:39:21 : accepted from localhost
Client(1) 11:39:21 : disconnected
Initially I added the code to festival.scm for * but later patched the
Festival code and re-complied it.
For every test I have restarted * after Festival
Any help appreciated
Thanks
Steven
Steven Jack
Videoconferencing Manager
University of Glasgow
Computing Service
Glasgow G12 8QQ
UK
Tel +44(0)1413303828 Fax +44(0)1413303820
Email: s.jack@compserv.gla.ac.uk
I tried doing the same things as you to make Festival
work with Asterisk,
but I had a small problem with Festival only prducing
the sound if the text
was tess than 14 characters !!!!
So I used the other approach and used the text2wave
utility instead (I saw
on some postings that people recommended it) and it
wrols like a charm now.
Here is the complete macro I used for TTS:
[macro-sandtts]
exten => s,1,Set(FNAME=${EPOCH})
exten => s,2,System(echo "${ARG1}" |
/usr/bin/text2wave -scale 1.5 -F
000 -o /tmp/${FNAME}.wav)
exten => s,3,Playback(/tmp/${FNAME})
exten => s,4,System(rm /tmp/${FNAME}.wav)
First we creat ann (almost) unique file name
Next we call the text2wave utility with correct
switches and passing the
text we need to pronounce as input to the utility.
then we playback the generated wave file.
Finally we remove the generated wave file.
Just call the macro with the text you want to say and
it will work for you.
> Message: 28
> Date: Thu, 9 Mar 2006 11:43:56 -0000
> From: "Steven" <s.jack@compserv.gla.ac.uk>
> Subject: [Asterisk-Users] Festival tts
> To: <asterisk-users@lists.digium.com>
> Message-ID: <00df01c6436e$bfa1e6c0$0f0ad182@SJACK>
> Content-Type: text/plain; charset="us-ascii"
>
>
> Hi I have installed Festival on the same box as
asterisk and followed the> instructions to integrate it with asterisk.
> Festival seems to work fine on its own performing
text to speech from the> command line or via a file.
> Asterisk answers the call but there is no speech. I
can see no errors in > the
> Festival log file
>
> The asterisk console shows
> --Executing Answer("SIP/81801-c091", "") in a new
stack> --Executing Festival("SIP/81801-c091", "mary had a
little lamb") in a new> stack
> ==Parsing '/etc/asterisk/festival.conf':Found
> there is nothing else after this
>
> If I start festival as festival --server I can see
the output>
> Server 11:39:14 : Festival server started on port
1314> Client(1) 11:39:21 : accepted from localhost
> Client(1) 11:39:21 : disconnected
>
> Initially I added the code to festival.scm for * but
later patched the> Festival code and re-complied it.
>
> For every test I have restarted * after Festival
>
> Any help appreciated
>
> Thanks
> Steven
>
> Steven Jack
> Videoconferencing Manager
> University of Glasgow
> Computing Service
> Glasgow G12 8QQ
> UK
> Tel +44(0)1413303828 Fax +44(0)1413303820
> Email: s.jack@compserv.gla.ac.uk
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Can someone tell me what I'm doing wrong here? I'm trying this from the
command prompt.
# echo "Hello World" | /usr/bin/text2wave -scale 1.5 -F 000 -o
/tmp/1141915933.wav
rateconv: failed to convert from 16000 to 0
doing v
#
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Antoine
Megalla
Sent: Thursday, March 09, 2006 8:27 AM
To: asterisk-users@lists.digium.com
Subject: Re: [Asterisk-Users] Festival tts
I tried doing the same things as you to make Festival work with
Asterisk, but I had a small problem with Festival only prducing the
sound if the text was tess than 14 characters !!!!
So I used the other approach and used the text2wave utility instead (I
saw on some postings that people recommended it) and it wrols like a
charm now.
Here is the complete macro I used for TTS:
[macro-sandtts]
exten => s,1,Set(FNAME=${EPOCH})
exten => s,2,System(echo "${ARG1}" |
/usr/bin/text2wave -scale 1.5 -F
000 -o /tmp/${FNAME}.wav)
exten => s,3,Playback(/tmp/${FNAME})
exten => s,4,System(rm /tmp/${FNAME}.wav)
First we creat ann (almost) unique file name Next we call the text2wave
utility with correct switches and passing the text we need to pronounce
as input to the utility.
then we playback the generated wave file.
Finally we remove the generated wave file.
Just call the macro with the text you want to say and it will work for
you.
> Message: 28
> Date: Thu, 9 Mar 2006 11:43:56 -0000
> From: "Steven" <s.jack@compserv.gla.ac.uk>
> Subject: [Asterisk-Users] Festival tts
> To: <asterisk-users@lists.digium.com>
> Message-ID: <00df01c6436e$bfa1e6c0$0f0ad182@SJACK>
> Content-Type: text/plain; charset="us-ascii"
>
>
> Hi I have installed Festival on the same box as
asterisk and followed the> instructions to integrate it with asterisk.
> Festival seems to work fine on its own performing
text to speech from the> command line or via a file.
> Asterisk answers the call but there is no speech. I
can see no errors in > the
> Festival log file
>
> The asterisk console shows
> --Executing Answer("SIP/81801-c091", "") in a new
stack> --Executing Festival("SIP/81801-c091", "mary had a
little lamb") in a new> stack
> ==Parsing '/etc/asterisk/festival.conf':Found
> there is nothing else after this
>
> If I start festival as festival --server I can see
the output>
> Server 11:39:14 : Festival server started on port
1314> Client(1) 11:39:21 : accepted from localhost
> Client(1) 11:39:21 : disconnected
>
> Initially I added the code to festival.scm for * but
later patched the> Festival code and re-complied it.
>
> For every test I have restarted * after Festival
>
> Any help appreciated
>
> Thanks
> Steven
>
> Steven Jack
> Videoconferencing Manager
> University of Glasgow
> Computing Service
> Glasgow G12 8QQ
> UK
> Tel +44(0)1413303828 Fax +44(0)1413303820
> Email: s.jack@compserv.gla.ac.uk
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com _______________________________________________
--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
The contents of this email message and any attachments are confidential and are
intended solely for addressee. The information may also be legally privileged.
This transmission is sent in trust, for the sole purpose of delivery to the
intended recipient. If you have received this transmission in error, any use,
reproduction or dissemination of this transmission is strictly prohibited. If
you are not the intended recipient, please immediately notify the sender by
reply email and delete this message and its attachments, if any.
"Steven" <s.jack@compserv.gla.ac.uk> wrote:> Hi I have installed Festival on the same box as asterisk and followed the > instructions to integrate it with asterisk. > Festival seems to work fine on its own performing text to speech from the > command line or via a file. > Asterisk answers the call but there is no speech. I can see no errors in the > Festival log fileI asked the same question to this list a while back but got no replies. What OS are you using? How did you install Festival? What version of *?
No, I did not install Festival, but I saw that the text2wave module is in the usr/bin directory. I'm running RH Ent 2.4 kernel -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Robert La Ferla Sent: Thursday, March 09, 2006 10:17 AM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Festival tts "Steven" <s.jack@compserv.gla.ac.uk> wrote:> Hi I have installed Festival on the same box as asterisk and followed > the instructions to integrate it with asterisk. > Festival seems to work fine on its own performing text to speech from > the command line or via a file. > Asterisk answers the call but there is no speech. I can see no errors > in the Festival log fileI asked the same question to this list a while back but got no replies. What OS are you using? How did you install Festival? What version of *? _______________________________________________ --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 The contents of this email message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply email and delete this message and its attachments, if any.
I figured it out. It should read: # echo "Hello World" | /usr/bin/text2wave -scale 1.5 -F 8000 -o /tmp/1141915933.wav The "8" was missing in front of the "000'. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Adam Robins Sent: Thursday, March 09, 2006 12:04 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Festival tts No, I did not install Festival, but I saw that the text2wave module is in the usr/bin directory. I'm running RH Ent 2.4 kernel -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Robert La Ferla Sent: Thursday, March 09, 2006 10:17 AM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Festival tts "Steven" <s.jack@compserv.gla.ac.uk> wrote:> Hi I have installed Festival on the same box as asterisk and followed > the instructions to integrate it with asterisk. > Festival seems to work fine on its own performing text to speech from > the command line or via a file. > Asterisk answers the call but there is no speech. I can see no errors > in the Festival log fileI asked the same question to this list a while back but got no replies. What OS are you using? How did you install Festival? What version of *? _______________________________________________ --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 The contents of this email message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply email and delete this message and its attachments, if any. _______________________________________________ --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