<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"><<a href="mailto:jmvalin@jmvalin.ca" target="_blank">jmvalin@jmvalin.ca</a>></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't matter what it gets encoded to/decoded from.<br>
you can initialize a decoder at 8 kHz and it'll still decode 48 kHz<br>
audio fine (you just won't get the high frequencies obviously). For<br>
sampling rates other than 8/12/16/24/48, then you'll have to do<br>
resampling. Have a look at the speexdsp resampler if you don'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>
> Hi, is there any way to tell the decoder the output sampling Fz we want ?<br>
><br>
> opus_decoder_create = Sampling rate of input signal (Hz)<br>
><br>
> Considering this example (VoIP-out from WebRTC/RTP)<br>
><br>
> MICROPHONE(44.1/48kHz) >> [encoder created at 48kHz but with<br>
> internalSampleRate set to 8kHz]>> INTERNET >> [decoder(created with<br>
> 48kHz)] >> 48kHz(?) >> G.711(8kHz)<br>
><br>
> This leaves us with the only option to re-sample even if the internal<br>
> sample rate was set to 8kHz.<br>
><br>
> This may not seem like a big problem since we could simply resample but<br>
> on a server with a lot of load this could be significant ?<br>
><br>
> <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>
> Is not very clear on these points.<br>
><br>
> Regards<br>
> Julien<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> opus mailing list<br>
> <a href="mailto:opus@xiph.org">opus@xiph.org</a><br>
> <a href="http://lists.xiph.org/mailman/listinfo/opus" rel="noreferrer" target="_blank">http://lists.xiph.org/mailman/listinfo/opus</a><br>
><br>
</blockquote></div><br></div>