问题
I want record audio with pause an resume option in android. for it I should record multiple file and merge them into single file. But now how can I merge .amr file?
回答1:
(This answer assumes we're talking about raw .amr files, not AMR data in a 3GP container or something like that)
The first 6 bytes of the file is an AMR signature, and the remainder of the file consists of audio frames. So you should be able to concatenate two AMR files by taking the full contents of the first file, and then append the contents of the second file minus its first 6 bytes.
来源:https://stackoverflow.com/questions/32069274/merge-amr-audio-file-in-java-or-android