No. I just want to explore more options. It would be nice to support playing remote wav files. -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brad Mina Sent: Wednesday, May 25, 2011 2:30 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Playing a wav file on a remote web server Is there anything preventing you from using mod_shout? You could use mod_shout very easily from a number of languages. On May 25, 2011, at 12:25 PM, Yungwei Chen <yungwei@resolvity.com> wrote:
Any suggestions?
-----Original Message----- Subject: [Freeswitch-users] Playing a wav file on a remote web server
Hi,
I am currently using the following javascript snippet to play a wav file on a remote web server. I'm wondering if there's another way to do it without involving a local file, just like mod_shout. Thanks.
function on_dtmf(session, type, digits, arg) { dtmf_digits += digits.digit; console_log("dtmf_digits=" + dtmf_digits + "\n"); return(true); }
var ttsUrl = "http://127.0.0.1/tts/getWav.aspx?text=please%20enter%20your%204%20digit%20pi..."; var file = "/tmp/tts.wav"; fetchURLFile(ttsUrl,file); session.streamFile(file, on_dtmf);
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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