[Speex-dev] Upsampling while decoding

Nikos Chantziaras realnc at gmail.com
Tue May 7 07:03:47 PDT 2013


On 07/05/13 13:07, Hermann Weber wrote:
> Hello!
>
> I would like to know if it is possible to request encoding to a higher
> samplerate than the original data.
> For example my uncompressed data was 22 kHz, and I would now like to
> decode the compressed data to 48 kHz (to feed it to a filter which
> expects a high "input" format).
> Is this possible with Speex?

Speex comes with a resampler, so yes. You need to resample your signal 
after decoding it.

However, I'd recommend using the Opus resampler instead of the Speex 
one.  (It can be used stand-alone and directly included in your own code.)



More information about the Speex-dev mailing list