Merge AMR audio file in java or android

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 06:19:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!