[Asterisk-Users] Festival tts

Vladimir Montealegre v_estailes at tutopia.com
Thu Mar 9 08:23:12 MST 2006


hey, how i do to do that with php agi's?



Este Mensaje Esta Hecho 100% con Electrones Reciclados
----- Original Message ----- 
From: "Adam Robins" <arobins at PharmaCentra.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
<asterisk-users at lists.digium.com>
Sent: Thursday, March 09, 2006 10:04 AM
Subject: RE: [Asterisk-Users] Festival tts


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 at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Antoine
Megalla
Sent: Thursday, March 09, 2006 8:27 AM
To: asterisk-users at 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 at compserv.gla.ac.uk>
> Subject: [Asterisk-Users] Festival tts
> To: <asterisk-users at lists.digium.com>
> Message-ID: <00df01c6436e$bfa1e6c0$0f0ad182 at 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 at 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.


_______________________________________________
--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

______________________________
Visita http://www.tutopia.com y comienza a navegar más rápido en Internet. Tutopia es Internet para todos.



More information about the asterisk-users mailing list