How to resample audio with AudioCodec?
Asked Answered
P

1

8

I have PCM audio data with sample rate 48000, I want to encode audio to AAC with sample rate 44100? Is it possible to do so with MediaCodec?

Pentane answered 6/11, 2015 at 14:0 Comment(0)
E
0

I'm afraid that MediaCodec API doesn't support resampling (to this day). You would need to either do this manually or use a library (e.g. Oboe, Sonic).

Extremism answered 17/8, 2021 at 10:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.