[Freeswitch-users] Optimum sound file format

Anthony Minessale anthony.minessale at gmail.com
Thu Apr 16 15:25:08 PDT 2009


Looking at your post, You are already using the best format.
If you do not have a fast filesystem try making a ram disk and play the
files from there instead.

if you *really* want you can use sox to turn them all into raw alaw files
and rename them with a .PCMA extension
to avoid the g711 transconding but g711 to PCM is pretty trivial. it's more
likely a file i/o distress you see.


On Thu, Apr 16, 2009 at 5:04 PM, Nik Middleton <
nik.middleton at noblesolutions.co.uk> wrote:

>  Hi Guys,
>
>
>
> I’m looking for the optimum audio format when using streamfile in a lua
> script.
>
>
>
> I’ve found CPU load increases rapidly with the number of threads playing a
> .wav file.  Can anyone tell me the optimum when using g711a?
>
>
>
> Right now the the .wav files are
>
>
>
> Audio format: PCM
>
> Sample rate : 8 kHz
>
> Mono
>
> Sample Size: 16 bit
>
> Bit rate          :128kbps
>
>
>
> Will it help CPU load if I resample to a bit rate of 64kbps and sample size
> of 8 bit?
>
>
>
> I have read that the sample size needs to be 13-14bit  +1 for alaw/ulaw
> though
>
>
>
> Regards,
>
> _______________________________________________
> 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
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090416/3ce5b2f7/attachment-0002.html 


More information about the FreeSWITCH-users mailing list