How can I upsample AMR audio data. The am开发者_Python百科r 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 :)
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.
精彩评论