I am using "playback" to play native sound file (<action application="playback" data="/tmp/hello"/>) My question is when it plays the file does it read file every time from the disk? or there is some way to "Load at the startup" and play directly from memory. I also saw the "mod_http_cache" but not sure if I should use it (I am unable to understand in what scenario it will be logical to use it)
Are you having problem playing files? Why worry with this? On Tue, Jan 20, 2015 at 9:04 AM, John Nash <john.nash778@gmail.com> wrote:
I am using "playback" to play native sound file (<action application="playback" data="/tmp/hello"/>)
My question is when it plays the file does it read file every time from the disk? or there is some way to "Load at the startup" and play directly from memory.
Yes, it does. You can put your file in a ram disk. I also saw the "mod_http_cache" but not sure if I should use it (I am
unable to understand in what scenario it will be logical to use it)
It caches a remote file (http) in your local filesystem.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Ítalo Rossi
Also.. pretty much all modern operating systems automatically handle appropriate file caching into memory, so in most cases where you are reusing the same files over and over again, they will end up in memory without any tricks.
On Jan 20, 2015, at 8:49 AM, Ítalo Rossi <italorossib@gmail.com> wrote:
Are you having problem playing files? Why worry with this?
On Tue, Jan 20, 2015 at 9:04 AM, John Nash <john.nash778@gmail.com <mailto:john.nash778@gmail.com>> wrote: I am using "playback" to play native sound file (<action application="playback" data="/tmp/hello"/>)
My question is when it plays the file does it read file every time from the disk? or there is some way to "Load at the startup" and play directly from memory.
Yes, it does. You can put your file in a ram disk.
I also saw the "mod_http_cache" but not sure if I should use it (I am unable to understand in what scenario it will be logical to use it)
It caches a remote file (http) in your local filesystem.
OK. Thank you Italo and Micheal. I think I will first test without RAM disk and see how it goes. Another related question is I looked at "say" application and I think it is quite useful as I need to play digits like "One hundred forty two" (by passing 142) but I planned to use "native" files (already encoded media files). Looks like "say" wont work with native files. I was studying "lua" to make script to convert number into words and then play native files. Is there any other easy way to do it? On Tue, Jan 20, 2015 at 7:27 PM, Michael Jerris <mike@jerris.com> wrote:
Also.. pretty much all modern operating systems automatically handle appropriate file caching into memory, so in most cases where you are reusing the same files over and over again, they will end up in memory without any tricks.
On Jan 20, 2015, at 8:49 AM, Ítalo Rossi <italorossib@gmail.com> wrote:
Are you having problem playing files? Why worry with this?
On Tue, Jan 20, 2015 at 9:04 AM, John Nash <john.nash778@gmail.com> wrote:
I am using "playback" to play native sound file (<action application="playback" data="/tmp/hello"/>)
My question is when it plays the file does it read file every time from the disk? or there is some way to "Load at the startup" and play directly from memory.
Yes, it does. You can put your file in a ram disk.
I also saw the "mod_http_cache" but not sure if I should use it (I am
unable to understand in what scenario it will be logical to use it)
It caches a remote file (http) in your local filesystem.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
participants (3)
-
John Nash
-
Michael Jerris
-
Ítalo Rossi