[Freeswitch-users] Sound files from cache
John Nash
john.nash778 at gmail.com
Tue Jan 20 17:06:16 MSK 2015
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 at 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 at 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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150120/cedb2b9a/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list