I would caution you to consider adding disk space before you try to compress all your recordings. The 16 bit SLIN that FS normally puts in your wave files are pretty easy to handle, whether playing back in a FS session, or encoding for playback on some other device. <br>
<br>An alternative might be to use lame to convert them to MP3&#39;s or ogg/vorbis files. If you look on the main FS conf call page you&#39;ll see I have the weekly recordings in multiple formats. (<a href="http://wiki.freeswitch.org/wiki/Weekly_Conference_Call#Past_Calls">http://wiki.freeswitch.org/wiki/Weekly_Conference_Call#Past_Calls</a>)<br>
<br>Here are some stats for last Wednesday&#39;s call. Note that I record wave files in 48kHz then use sox to downsample to 16kHz wave, then I convert that 16kHz file into MP3 and Vorbis (in an ogg container). Here&#39;s what the results look like:<br>
<br><span style="font-family: courier new,monospace;">&lt;2831&gt;:ls -1s conf_call_2011-06-15.*</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 18736 conf_call_2011-06-15.mp3</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 23044 conf_call_2011-06-15.ogg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">199756 conf_call_2011-06-15.wav</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">&lt;2832&gt;:file conf_call_2011-06-15.mp3 </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">conf_call_2011-06-15.mp3: MPEG ADTS, layer III, v2,  24 kBits, 16 kHz, Monaural</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">&lt;2833&gt;:file conf_call_2011-06-15.ogg </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">conf_call_2011-06-15.ogg: Ogg data, Vorbis audio, mono, 16000 Hz, ~48000 bps, created by: Xiph.Org libVorbis I</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">&lt;2834&gt;:file conf_call_2011-06-15.wav </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">conf_call_2011-06-15.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 16000 Hz</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
Note that the file sizes are in 1K blocks.<br><br>So, bottom line is this: if you have the disk space then use wave. If you don&#39;t have disk space for wave then get some! :D If you REALLY need to use a different format then choose something like MP3 or Vorbis for long-term storage. <br>
<br>-MC<br><br><div class="gmail_quote">On Fri, Jun 24, 2011 at 2:26 PM, Wes <span dir="ltr">&lt;<a href="mailto:wes-fs@499x.com">wes-fs@499x.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
In my tests, if I record a call in .wav format, a 10 second file is<br>
about 177,000 bytes, while a 10 second .gsm file is 17,000 bytes.<br>
<br>
I  then used sox to convert the .gsm file to a .wav file, and it stayed<br>
at around 17,000 bytes.  So, is the default recording format for .wav<br>
using a higher sample rate? vs the default conversion format for the sox<br>
tool?<br>
<br>
checking the file type using &quot;file&quot; I see that the larger one is:<br>
RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz<br>
<br>
and the wav created by sox via the default conversion from .gsm is:<br>
RIFF (little-endian) data, WAVE audio, GSM 6.10, mono 8000 Hz<br>
<br>
So apparently the larger wav file is 16 bit... how are these recording<br>
parameters controlled?  Can I set it to record directly into the smaller<br>
wav format? Or will I have to run sox on every file...<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>