You're right I think. :) Was talking about playback... guess it was pretty late.<br>
<br>
-Steve<br>
<br>
<br><br><div class="gmail_quote">On 28 June 2011 00:28, David Ponzone <span dir="ltr"><<a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">Steven,<div><br></div><div>AFAIR, one of the recording app (not sure which) does not support mod_native_file, meaning for instance you can't dump your call using codec XXX to a raw file.</div>
<div>That's a quite old limitation, so perhaps it's not an issue anymore.</div><div><br></div><div><div class="im"><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<div><font face="'Helvetica Neue'"><font color="#1C00FF">David Ponzone </font><font color="#000000" size="3"><span style="font-size:12px">Direction Technique</span></font></font></div><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div>
<div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">tel: 01 74 03 18 97</span></font></font></div><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">gsm: 06 66 98 76 34</span></font></font></div>
<div><font face="'Helvetica Neue'"><br></font></div><div><font color="#1C00FF" face="'Helvetica Neue'">Service Client<span> </span></font><font face="'Helvetica Neue'"><font color="#FF0000">IP</font></font><font color="#1C00FF" face="'Helvetica Neue'">eva</font></div>
<div><font color="#1C00FF" face="'Helvetica Neue'"><span style="color:rgb(0, 0, 0);font-family:Helvetica"><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">tel: 0811 46 26 26</span></font></font></div>
<div><font face="'Helvetica Neue'" size="3"><span style="font-size:13px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><a>www.ipeva.fr</a></span><span style="color:rgb(101, 104, 149)"> - <span style="color:rgb(0, 34, 243);text-decoration:underline"><a>www.ipeva-studio.com</a></span></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)">
<span><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;text-align:justify;color:rgb(192, 192, 192)"><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div>
<div style="text-decoration:underline;text-align:justify"><font color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br></span><br>
</div>
<br></div><div><div>Le 28/06/2011 à 00:10, Steven Ayre a écrit :</div><div><div></div><div class="h5"><br><blockquote type="cite"><div bgcolor="#FFFFFF"><div>Its not just voice quality. It's also CPU.</div><div><br></div>
<div>If you're using a compressed format, you're doing transcoding step. FS needs to decompress the file to L16 so it can compress it to the codec. Storing as wav containing l16 would avoid that. You can also use mod_native_file to compress the audio file to each codec format so that you don't need to transcode at all at the time because it's already done, although that does mean a file for each codec so more space needed.</div>
<div><br>Steve on iPhone</div><div><br>On 27 Jun 2011, at 20:43, Wes <<a href="mailto:wes-fs@499x.com" target="_blank">wes-fs@499x.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
I guess part of my confusion here was due to the term "raw data"
mentioned in conjunction with the .gsm extension on the wiki page
below... but actually gsm is a compressed format.<br>
<br>
<a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session" target="_blank"></a><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session</a><br>
<br>
So, what is the best "compressed" format to use for recording voice
(that is available as a direct recording format inside freeswitch)?
There are tons of formats listed when I do "show file", but I tried
a few and they are also giving me large files like the wav extension
did. (au, for example)<br>
<br>
Even though the PCM/Wave format is preferred for voice quality, when
we're talking about a 10:1 compression ratio, if the sound quality
is still acceptable, I'd rather just record directly into the
compressed format. We're talking about ~10- 20 minute recordings
that will need to be transferred over the internet to a third party.<br>
<br>
On 6/24/2011 6:31 PM, Michael Collins wrote:
<blockquote type="cite">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's or
ogg/vorbis files. If you look on the main FS conf call page you'll
see I have the weekly recordings in multiple formats. (<a href="http://wiki.freeswitch.org/wiki/Weekly_Conference_Call#Past_Calls" target="_blank"></a><a href="http://wiki.freeswitch.org/wiki/Weekly_Conference_Call#Past_Calls" target="_blank">http://wiki.freeswitch.org/wiki/Weekly_Conference_Call#Past_Calls</a>)<br>
<br>
Here are some stats for last Wednesday'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's what the results look like:<br>
<br>
<span style="font-family:courier new,monospace"><2831>: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"><2832>: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"><2833>: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:
<a href="http://Xiph.Org/" target="_blank">Xiph.Org</a> 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"><2834>: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'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"><<a href="mailto:wes-fs@499x.com" target="_blank"></a><a href="mailto:wes-fs@499x.com" target="_blank">wes-fs@499x.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);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 "file" 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"></a><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" target="_blank"></a><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"></a><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"></a><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"></a><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
<pre><fieldset></fieldset>
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
<a href="http://www.cluecon.com/" target="_blank"></a><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"></a><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"></a><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"></a><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org/" target="_blank"></a><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Join us at ClueCon 2011, Aug 9-11, Chicago</span><br><span><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE</span><br>
<span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br>
<span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></span><br>
</div></blockquote></div>_______________________________________________<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" target="_blank">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></div></div><br></div></div><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>
<br></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>