Playing remote prompts
If I did not wish to store audio files on a FreeSWITCH host, what are my options for being able to retrieve a remote file and playing it? My understanding is that the playback application can only play a local file, is that correct? I did notice that there is a shell_stream module, which you could potentially use to retrieve a file (say, via HTTP), and provide the audio data as the output bash script output. Is there a way to do this or something similar without having to actually load another program/script? Thanks, Adam Kelloway
At least one potion is to use mod_shout to stream them from a server. Do note that this adds another point of failure to your setup... -Avi On Mon, May 9, 2011 at 10:33 PM, Adam Kelloway <adam.kelloway@newpace.ca>wrote:
If I did not wish to store audio files on a FreeSWITCH host, what are my options for being able to retrieve a remote file and playing it? My understanding is that the playback application can only play a local file, is that correct? I did notice that there is a shell_stream module, which you could potentially use to retrieve a file (say, via HTTP), and provide the audio data as the output bash script output. Is there a way to do this or something similar without having to actually load another program/script?
Thanks,
Adam Kelloway
_______________________________________________ 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
You could setup an internal http server with a directory called 'audio' ( http://server.ip/audio/), then use mod_shout as Avi suggested like this: <action application="shout" data="http://server.ip/audio/file.mp3"/> On Mon, May 9, 2011 at 12:57 PM, Avi Marcus <avi@avimarcus.net> wrote:
At least one potion is to use mod_shout to stream them from a server. Do note that this adds another point of failure to your setup...
-Avi
On Mon, May 9, 2011 at 10:33 PM, Adam Kelloway <adam.kelloway@newpace.ca>wrote:
If I did not wish to store audio files on a FreeSWITCH host, what are my options for being able to retrieve a remote file and playing it? My understanding is that the playback application can only play a local file, is that correct? I did notice that there is a shell_stream module, which you could potentially use to retrieve a file (say, via HTTP), and provide the audio data as the output bash script output. Is there a way to do this or something similar without having to actually load another program/script?
Thanks,
Adam Kelloway
_______________________________________________ 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
will the fact that the file is on a remote server increase delay in starting the replay of the audio files? I setup a remote directory on remote server and played them that way. any reason why this would be a bad idea? On Mon, May 9, 2011 at 10:02 PM, Brad Mina <brad@tritelcomm.com> wrote:
You could setup an internal http server with a directory called 'audio' ( http://server.ip/audio/), then use mod_shout as Avi suggested like this: <action application="shout" data="http://server.ip/audio/file.mp3"/>
On Mon, May 9, 2011 at 12:57 PM, Avi Marcus <avi@avimarcus.net> wrote:
At least one potion is to use mod_shout to stream them from a server. Do note that this adds another point of failure to your setup...
-Avi
On Mon, May 9, 2011 at 10:33 PM, Adam Kelloway <adam.kelloway@newpace.ca>wrote:
If I did not wish to store audio files on a FreeSWITCH host, what are my options for being able to retrieve a remote file and playing it? My understanding is that the playback application can only play a local file, is that correct? I did notice that there is a shell_stream module, which you could potentially use to retrieve a file (say, via HTTP), and provide the audio data as the output bash script output. Is there a way to do this or something similar without having to actually load another program/script?
Thanks,
Adam Kelloway
_______________________________________________ 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
You might experience a small delay depending on your network resources. However, this is essentially the way MRCP works, so I doubt anyone would necessarily call it a bad idea. Best thing to do would be to write a proof of concept test. -MC On Tue, May 10, 2011 at 3:48 AM, Marc de Corny <marcdecorny@gmail.com>wrote:
will the fact that the file is on a remote server increase delay in starting the replay of the audio files?
I setup a remote directory on remote server and played them that way. any reason why this would be a bad idea?
On Mon, May 9, 2011 at 10:02 PM, Brad Mina <brad@tritelcomm.com> wrote:
You could setup an internal http server with a directory called 'audio' ( http://server.ip/audio/), then use mod_shout as Avi suggested like this: <action application="shout" data="http://server.ip/audio/file.mp3"/>
On Mon, May 9, 2011 at 12:57 PM, Avi Marcus <avi@avimarcus.net> wrote:
At least one potion is to use mod_shout to stream them from a server. Do note that this adds another point of failure to your setup...
-Avi
On Mon, May 9, 2011 at 10:33 PM, Adam Kelloway <adam.kelloway@newpace.ca
wrote:
If I did not wish to store audio files on a FreeSWITCH host, what are my options for being able to retrieve a remote file and playing it? My understanding is that the playback application can only play a local file, is that correct? I did notice that there is a shell_stream module, which you could potentially use to retrieve a file (say, via HTTP), and provide the audio data as the output bash script output. Is there a way to do this or something similar without having to actually load another program/script?
Thanks,
Adam Kelloway
_______________________________________________ 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
_______________________________________________ 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
On Mon, May 9, 2011 at 5:02 PM, Brad Mina <brad@tritelcomm.com> wrote:
You could setup an internal http server with a directory called 'audio' ( http://server.ip/audio/), then use mod_shout as Avi suggested like this: <action application="shout" data="http://server.ip/audio/file.mp3"/>
+1 on "Interest" in this discussion. Additional point of failure argument aside, I'm very interested to know if anyone else has any experience to share re: streaming audio files/prompts etc from a remote FS via shout/Ice type of protocols/techniques rather than using a fileshare mount etc? Is there a preference of one over the other (SHOUT Vs ICE) or should I be reading the difference between a SHOUTcast and ICEcast before opening my mouth? :)
Thx
I wrote a custom module to pull remote prompts over HTTP and cache them on my FS server. Given the type of apps I run, I have a 99% hit rate. I wrote this using libcurl, but you could probably do something similar with a shell script as was initially mentioned. On Thu, May 12, 2011 at 4:49 PM, A E [Gmail] <all.eforums@gmail.com> wrote:
On Mon, May 9, 2011 at 5:02 PM, Brad Mina <brad@tritelcomm.com> wrote:
You could setup an internal http server with a directory called 'audio' ( http://server.ip/audio/), then use mod_shout as Avi suggested like this: <action application="shout" data="http://server.ip/audio/file.mp3"/>
+1 on "Interest" in this discussion. Additional point of failure argument aside, I'm very interested to know if anyone else has any experience to share re: streaming audio files/prompts etc from a remote FS via shout/Ice type of protocols/techniques rather than using a fileshare mount etc? Is there a preference of one over the other (SHOUT Vs ICE) or should I be reading the difference between a SHOUTcast and ICEcast before opening my mouth? :)
Thx
_______________________________________________ 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
If your files are on a remote server you can mount it locally using NFS or something else. On Mon, May 9, 2011 at 4:33 PM, Adam Kelloway <adam.kelloway@newpace.ca>wrote:
If I did not wish to store audio files on a FreeSWITCH host, what are my options for being able to retrieve a remote file and playing it? My understanding is that the playback application can only play a local file, is that correct? I did notice that there is a shell_stream module, which you could potentially use to retrieve a file (say, via HTTP), and provide the audio data as the output bash script output. Is there a way to do this or something similar without having to actually load another program/script?
Thanks,
Adam Kelloway
_______________________________________________ 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
We had some performance issues with NFS, we switched to MooseFS for voice prompts as well as recordings with very good results. On May 11, 2011, at 10:05 AM, Fernando Testa wrote:
If your files are on a remote server you can mount it locally using NFS or something else.
On Mon, May 9, 2011 at 4:33 PM, Adam Kelloway <adam.kelloway@newpace.ca> wrote: If I did not wish to store audio files on a FreeSWITCH host, what are my options for being able to retrieve a remote file and playing it? My understanding is that the playback application can only play a local file, is that correct? I did notice that there is a shell_stream module, which you could potentially use to retrieve a file (say, via HTTP), and provide the audio data as the output bash script output. Is there a way to do this or something similar without having to actually load another program/script?
Thanks,
Adam Kelloway
_______________________________________________ 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
I was thinking of NFS, but was also concerned about its reliability. Were your performance issues related to file access times? Also, if the server was ever unavailable, it would be useful to play a default prompt that was guaranteed to be on the local disk. Is there any existing fail-over mechanism built into FreeSWITCH? I hadn't heard of MooseFS, so I will look into that as well, thanks. On 3:59 PM, Moe Navid wrote:
We had some performance issues with NFS, we switched to MooseFS for voice prompts as well as recordings with very good results.
On May 11, 2011, at 10:05 AM, Fernando Testa wrote:
If your files are on a remote server you can mount it locally using NFS or something else.
On Mon, May 9, 2011 at 4:33 PM, Adam Kelloway <adam.kelloway@newpace.ca <mailto:adam.kelloway@newpace.ca>> wrote:
If I did not wish to store audio files on a FreeSWITCH host, what are my options for being able to retrieve a remote file and playing it? My understanding is that the playback application can only play a local file, is that correct? I did notice that there is a shell_stream module, which you could potentially use to retrieve a file (say, via HTTP), and provide the audio data as the output bash script output. Is there a way to do this or something similar without having to actually load another program/script?
Thanks,
Adam Kelloway
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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 <http://www.freeswitch.org/>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
-- Adam Kelloway Software Engineer NewPace Technology Development Inc. adam.kelloway@newpace.ca +1 902-406-8375 x1031 www.newpace.ca
participants (9)
-
A E [Gmail]
-
Adam Kelloway
-
Avi Marcus
-
Brad Mina
-
Christopher Rienzo
-
Fernando Testa
-
Marc de Corny
-
Michael Collins
-
Moe Navid