How to use TTS/flite via mod_socket
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<http://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.
On Mon, Jul 30, 2012 at 12:08 PM, Hector Geraldino < Hector.Geraldino@ipsoft.com> 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****
** **
**
The method Hector suggests is good if you are doing a raw outbound event socket connection. I'd recommend using ESL and the programming language of your choice to help abstract away some of the unnecessary details. Also, if for some reason you need to execute the command on an arbitrary UUID then you can use uuid_broadcast. From fs_cli you can test it: uuid_broadcast <uuid> speak::flite|kal|'hello word' bleg Replace 'bleg' with 'aleg' or 'both' depending on exactly you want to accomplish, i.e. play on the inbound leg, outbound leg, or both. -MC
participants (3)
-
Hector Geraldino
-
Leonardo
-
Michael Collins