<div dir="ltr">Isn't this what mod_native_file does?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 28, 2017 at 6:53 PM, jungle Boogie <span dir="ltr"><<a href="mailto:jungleboogie0@gmail.com" target="_blank">jungleboogie0@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 28 July 2017 at 13:00, Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<br>
><br>
> Pro tip:<br>
><br>
> If the file path is /var/sounds/example.wav<br>
><br>
> you can create<br>
><br>
> /var/sounds/8000/example.wav<br>
> /var/sounds/16000/example.wav<br>
> /var/sounds/32000/example.wav<br>
> /var/sounds/48000/example.wav<br>
><br>
> And it will auto-select the correct one that matches the sample rate of that call.<br>
><br>
><br>
<br>
</span>Yes, a great tip!<br>
<br>
Also, you might need to normalize the audio. Michael pointed me in the<br>
right direction on this earlier in the week and it made a big<br>
difference on some of my audio files.<br>
<br>
This is this script freeswitch uses for MOH and the audio files:<br>
<a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch-sounds/browse/dist.pl" rel="noreferrer" target="_blank">https://freeswitch.org/stash/<wbr>projects/FS/repos/freeswitch-<wbr>sounds/browse/dist.pl</a><br>
<br>
Check out these lines:<br>
<a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch-sounds/browse/dist.pl#82" rel="noreferrer" target="_blank">https://freeswitch.org/stash/<wbr>projects/FS/repos/freeswitch-<wbr>sounds/browse/dist.pl#82</a><br>
<a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch-sounds/browse/dist.pl#112" rel="noreferrer" target="_blank">https://freeswitch.org/stash/<wbr>projects/FS/repos/freeswitch-<wbr>sounds/browse/dist.pl#112</a><br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Guillermo Ruiz Camauer<br></div>
</div>