Wednesday, 7 August 2013

Opus sample rate in Android app

Opus sample rate in Android app

I'm trying to use Opus to compress an audio stream and send it to another
phone for playback. My problem is that in Opus the encoder and decoder
work with audio samples at 48KHz, whereas the only sample rate that
Android guarantees to work is 44.1 Khz.
So, my question is whether I need to always upsample the audio (using
another library, I suppose) before sending, and then downsample before
playback, or is it ok to just pass in the audio anyway without bothering
with the re-sampling?

No comments:

Post a Comment