Thanks Hector, sendmsg worked like a charm :-)
Regards,
Leo


On 07/30/2012 04:08 PM, Hector Geraldino wrote:

I don’t know what API you’re using to handle ESL connections, but in general all you need to do is to send an execute command with sendmsg:

 

sendmsg <uuid>

call-command: execute

execute-app-name: speak

execute-app-arg: flite|kal|Hello world

 

 

 

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Leonardo
Sent: Monday, July 30, 2012 2:55 PM
To: freeswitch-users@lists.freeswitch.org
Subject: [Freeswitch-users] How to use TTS/flite via mod_socket

 

Hi.
I compiled the mod_flite and it is working on my Freeswitch.
I added the following dialplan:

<extension name="flite">
   <condition field="destination_number" expression="^9886$">
     <action application="set" data="tts_engine=flite"/>
     <action application="set" data="tts_voice=kal"/>
     <action application="speak" data="This is flite on FreeSWITCH"/>
   </condition>
</extension>

Is there a way to "speak" in a "connected" call based on UUID and using a mod_event_socket?
Thanks,
Leo
 

--

Leonardo N. S. Pereira, Software Engineer
T:+55.19.3112-1200 ext. 1283|F:+55.19.3207-1437
DaitanGroup|www.daitangroup.com|Highly Reliable Outsourcing. Value Added Services Worldwide.
Privileged and confidential. If this message has been received in error, please notify sender and delete it immediately.
Conteúdo confidencial. Se esta mensagem foi recebida por engano, favor avisar o remetente e apagá-la imediatamente.



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

Join Us At ClueCon - Aug 7-9, 2012

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

--

Leonardo N. S. Pereira, Software Engineer
T:+55.19.3112-1200 ext. 1283|F:+55.19.3207-1437
DaitanGroup|www.daitangroup.com|Highly Reliable Outsourcing. Value Added Services Worldwide.
Privileged and confidential. If this message has been received in error, please notify sender and delete it immediately.
Conteúdo confidencial. Se esta mensagem foi recebida por engano, favor avisar o remetente e apagá-la imediatamente.