<div dir="ltr"><div><div><div><div>Hi, another question on the same topic<br><br>Speex resampler at 44.1kHz seems to be very CPU intensive on Android (even more than the Opus encoder)<br><br></div>While Speex at 48kHz is just fine.<br><br></div></div>I wonder any alternate solutions or ideas ?<br>Improve it, look for alternate solution ...<br><br>I am guessing the NEON optimization are still used for both, etc. <br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 2, 2015 at 4:46 PM, Jean-Marc Valin <span dir="ltr">&lt;<a href="mailto:jmvalin@jmvalin.ca" target="_blank">jmvalin@jmvalin.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The encoder and decoder can handle, 8, 12, 16, 24 and 48 kHz<br>
input/output. If doesn&#39;t matter what it gets encoded to/decoded from.<br>
you can initialize a decoder at 8 kHz and it&#39;ll still decode 48 kHz<br>
audio fine (you just won&#39;t get the high frequencies obviously). For<br>
sampling rates other than 8/12/16/24/48, then you&#39;ll have to do<br>
resampling. Have a look at the speexdsp resampler if you don&#39;t already<br>
have one.<br>
<br>
Cheers,<br>
<br>
        Jean-Marc<br>
<div><div class="h5"><br>
On 02/04/15 10:42 AM, Julien Chavanton wrote:<br>
&gt; Hi, is there any way to tell the decoder the output sampling Fz we want ?<br>
&gt;<br>
&gt; opus_decoder_create = Sampling rate of input signal (Hz)<br>
&gt;<br>
&gt; Considering this example (VoIP-out from WebRTC/RTP)<br>
&gt;<br>
&gt; MICROPHONE(44.1/48kHz) &gt;&gt; [encoder created at 48kHz but with<br>
&gt; internalSampleRate set to 8kHz]&gt;&gt; INTERNET &gt;&gt; [decoder(created with<br>
&gt; 48kHz)] &gt;&gt; 48kHz(?) &gt;&gt; G.711(8kHz)<br>
&gt;<br>
&gt; This leaves us with the only option to re-sample even if the internal<br>
&gt; sample rate was set to 8kHz.<br>
&gt;<br>
&gt; This may not seem like a big problem since we could simply resample but<br>
&gt; on a server with a lot of load this could be significant ?<br>
&gt;<br>
&gt; <a href="https://tools.ietf.org/html/draft-ietf-payload-rtp-opus-08" rel="noreferrer" target="_blank">https://tools.ietf.org/html/draft-ietf-payload-rtp-opus-08</a><br>
&gt; Is not very clear on these points.<br>
&gt;<br>
&gt; Regards<br>
&gt; Julien<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; opus mailing list<br>
&gt; <a href="mailto:opus@xiph.org">opus@xiph.org</a><br>
&gt; <a href="http://lists.xiph.org/mailman/listinfo/opus" rel="noreferrer" target="_blank">http://lists.xiph.org/mailman/listinfo/opus</a><br>
&gt;<br>
</blockquote></div><br></div>