I will give this a whirl and see what happens. I have no problems trying that out.<br>-MC<br><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 7:12 PM, Bryan Smart <span dir="ltr"><<a href="mailto:bryansmart@bryansmart.com">bryansmart@bryansmart.com</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">Hi, Michael.<div><br></div><div>Thanks for posting this.</div><div><br></div><div>Have you considered using the higher quality sample rate conversion features in new versions of sox?</div>
<div><br></div><div>A starting place for info is here:</div><div><a href="http://sox.sourceforge.net/SoX/Resampling" target="_blank">http://sox.sourceforge.net/SoX/Resampling</a></div><div><br></div><div>Perhaps change:</div>
<div><br></div><div><blockquote type="cite"><span style="font-family:'courier new', monospace">sox -v 0.2 $base_dir/$dir/$filename -r $rate -c 1 $tmp_dir/$voice_dir/$dir/$rate/$filename</span><br style="font-family:'courier new', monospace">
</blockquote><div><br></div><div>to:</div><div><br></div><div>sox <span style="font-family:'courier new', monospace">$base_dir/$dir/$filename </span><span style="font-family:'courier new', monospace">-c 1 $tmp_dir/$voice_dir/$dir/$rate/$filename rate -v -I $rate dither</span></div>
<div><br></div><div><span style="font-family:'courier new', monospace">rate -v -I $rate: Replaces -r $rate. Uses the newer "very high quality" mode (instead of "high quality") with Intermediate Phase response (instead of linear). This setting is superior to the default, but slower to process.</span></div>
<div><br></div><div>dither: Applies basic triangular dithering. There are other dithering strategies, but, based on what I've read and experienced, they aren't as useful when down-sampling to low rates.</div><div>
<br></div><div>Might produce slightly higher quality files, the next time it is necessary to regenerate them.</div><div><br></div><div>Bryan</div><div><br></div><div><div>On Jun 28, 2011, at 11:18 AM, Michael Collins wrote:</div>
<br><blockquote type="cite">You can download the 48kHz files from <a href="http://files.freeswitch.org/" target="_blank">files.freeswitch.org</a>. The script itself is nothing special - all it does is cycle through the target sampling rates and run each file through sox. Here's a copy of the script:<br>
<br><span style="font-family:courier new,monospace">base_dir="48000"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">rates="48000 32000 16000 8000"</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">version="1.0.16"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">voice="en-us-callie"</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">voice_dir="en/us/callie"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">tar_path="../../.."</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">tmp_dir="tmp"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">CWD=`pwd`</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">for rate in $rates; do \</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> mkdir -p $tmp_dir/$voice_dir</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> for dir in `ls $base_dir`; do \</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> test -d $tmp_dir/$voice_dir/$dir/$rate || mkdir -p $tmp_dir/$voice_dir/$dir/$rate; \</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> for filename in `ls $base_dir/$dir`; do \</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> echo sox -v 0.2 $base_dir/$dir/$filename -r $rate -c 1 $tmp_dir/$voice_dir/$dir/$rate/$filename; \</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> sox -v 0.2 $base_dir/$dir/$filename -r $rate -c 1 $tmp_dir/$voice_dir/$dir/$rate/$filename; \</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> done ; \</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> done ; \</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> cd $tmp_dir</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> echo tar -cvzf $CWD/$tar_path/freeswitch-sounds-$voice-$rate-$version.tar.gz *; \</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> tar -cvzf $CWD/$tar_path/freeswitch-sounds-$voice-$rate-$version.tar.gz *; \</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> cd -</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> rm -rf $tmp_dir</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">done</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">cd $tar_path</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">for rate in $rates; do \</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> openssl dgst -sha1 freeswitch-sounds-$voice-$rate-$version.tar.gz > freeswitch-sounds-$voice-$rate-$version.tar.gz.sha1 ; \</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> openssl dgst -md5 freeswitch-sounds-$voice-$rate-$version.tar.gz > freeswitch-sounds-$voice-$rate-$version.tar.gz.md5 ; \</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">done</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">cd $CWD</span><br style="font-family:courier new,monospace">
<br>Let me know if you have any suggestions.<br>-MC<br><br><div class="gmail_quote">On Mon, Jun 27, 2011 at 8:25 PM, Bryan Smart <span dir="ltr"><<a href="mailto:bryansmart@bryansmart.com" target="_blank">bryansmart@bryansmart.com</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">-v is a multiplier. So, -v 0.2 reduces gain to 20% of original.<div><br></div><div>It is typical to supply professionally recorded audio with peaks boosted to 0DBFS. That is probably how the prompts were originally supplied. It makes since that -v 0.2 would reduce the max power to 20%, around -15 to -16 DBFS.<br>
<div><br></div><div>The FS build process downloads pre-processed versions of these files. Is there somewhere online that I can find the source recordings+script that produces the pre-processed files that are downloaded by the build process?</div>
<div><br></div><div><font color="#888888">Bryan<br><div><br></div></font><div><div><div><div></div><div><div>On Jun 27, 2011, at 7:32 PM, Michael Collins wrote:</div><br></div></div><blockquote type="cite"><div>
<div></div><div><br><br><div class="gmail_quote">On Mon, Jun 27, 2011 at 3:07 PM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">
Have a look at the 48khz versions of the files, those should be the originals.<br>
Someone runs a batch sox command on them to get them to the other levels.<br></blockquote><br></div>Just for the record, the sox command used to normalize the sounds is:<br>sox -v 0.2 $file_in -r $rate -c 1 $file_out<br>
<br>The -v format is the "volume" format and if I read the sox man page correctly it means a "linear amplitude adjustment". What I can't tell from the man page is whether .2 means "reduce by 20%" or "reduce to 20%" or something else. In any case, like Tony says, we are not picky about this as long as it's not pointlessly loud.<br>
<br>-MC <br></div></div><div class="im"><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>
</div></div></blockquote></div><br></div></div></div></div><div class="im"><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" 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>
<br></div></blockquote></div><div class="im"><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" 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>
</div></blockquote></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>