javaaudiosamplingamr

AMR - how to upsample


How can I upsample AMR audio data. The amr file consists of 6 bytes header - "!#AMR".getBytes() and after that there are frames 32bytes each with 1 byte header and 31bytes audio. How am I supposed to upsample it? I read about linear interpolation but I am not sure how to apply it here. Should I interpolate between different frames or between bytes in a frame or something else? Any help will be highly appreciated :)


Solution

  • You need to convert your AMR data to a raw PCM buffer, do the resampling on the PCM buffer, and then optionally convert back to AMR.