Re: Upsampling while decoding
Nikos Chantziaras <[email protected]> Tue, 07 May 2013 17:03:47 +0300
| Newsgroups | gmane.comp.audio.compression.speex.devel |
|---|---|
| Organization | Lucas Barks |
| Message-ID | <[email protected]> |
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.)