<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Compared to not having to, its certainly more cpu intensive, not so much compared to video transcoding.  Depending on the rates involved its probably less expensive than g729 or opus transcoding, more so than g711 transcoding.<div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 28, 2017, at 5:45 PM, Muhammad Naseer Bhatti <<a href="mailto:nbhatti@gmail.com" class="">nbhatti@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="bloop_customfont" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px;" class=""><br class="Apple-interchange-newline">Ok Awesome. So the transcoding from one sampling rate to other is expensive and does takes some CPU cycles, correct?</div><div class="airmail_ext_on" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="">From: <span style="" class="">Anthony Minessale</span><span class="Apple-converted-space"> </span><a href="mailto:anthony.minessale@gmail.com" class=""><anthony.minessale@gmail.com></a><br class="">Reply: <span style="" class="">FreeSWITCH Users Help</span><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users@lists.freeswitch.org" class=""><freeswitch-users@lists.freeswitch.org></a><br class="">Date: <span style="" class="">July 28, 2017 at 11:03:18 PM</span><br class="">To: <span style="" class="">FreeSWITCH Users Help</span><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users@lists.freeswitch.org" class=""><freeswitch-users@lists.freeswitch.org></a><br class="">Subject: <span style="" class=""><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] Is there Sampling rate conversion CPU penalty?<span class="Apple-converted-space"> </span><br class=""></span></div><br style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span class=""><div class=""><div class=""></div><div class=""><div dir="ltr" class="">Pro tip:<div class=""><br class=""></div><div class="">If the file path is /var/sounds/example.wav</div><div class=""><br class=""></div><div class="">you can create </div><div class=""><br class=""></div><div class="">/var/sounds/8000/example.wav<br class=""></div><div class=""><div class="">/var/sounds/16000/example.wav<br class=""></div></div><div class=""><div class="">/var/sounds/32000/example.wav<br class=""></div></div><div class=""><div class="">/var/sounds/48000/example.wav<br class=""></div></div><div class=""><br class=""></div><div class="">And it will auto-select the correct one that matches the sample rate of that call.</div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 28, 2017 at 2:53 PM, Tayeb Meftah<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:tayeb.meftah@gmail.com" target="_blank" class="">tayeb.meftah@gmail.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div dir="auto" class="">Hey,<div class="">The best practice is to transcode your wave files to the diferent rates your clients use</div><div class="">If your clients are only on pstn side, 8khz should be enough</div><div class="">If your clients is on sip side, better to generate 8, 16,32, and 48khz (mono) files</div><div class="">Converting rate is a cpu intencive task and its part of transcoding, so its not recomanded...</div><div class="">Thanks.<br class=""><br class=""><div id="m_5817332799101338241AppleMailSignature" class="">Envoyé de mon iPad</div><div class=""><div class="h5"><div class=""><br class="">Le 28 juil. 2017 à 20:24, Muhammad Naseer Bhatti <<a href="mailto:nbhatti@gmail.com" target="_blank" class="">nbhatti@gmail.com</a>> a écrit :<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div id="m_5817332799101338241bloop_customfont" style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class="">Hi, I am streaming a wav file who’s sampling rate is 44100 and FreeSWITCH says sample rate 44100 doesn't match requested rate 8000. So I think it’s doing the conversion here. If so, is there any CPU performance penalty while doing the conversion? What’s the best practice here should I change the sampling rate of the file or just leave it like that? </div><div class="m_5817332799101338241bloop_sign" id="m_5817332799101338241bloop_sign_1501269690316827136"><div style="font-family: helvetica, arial; font-size: 13px;" class=""><br class=""></div></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div></span></blockquote></div></blockquote></div></div></body></html>