合并AMR音频文件在Java和Android [英] Merge AMR audio file in java or android

查看:658
本文介绍了合并AMR音频文件在Java和Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想暂停录音在一个android的简历选项。
因为它,我应该记录多个文件,并将它们合并到单个文件中。
但现在我怎么能合并.AMR文件?

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?

推荐答案

<子>(这个回答假设我们正在谈论的原始文件.AMR,在3GP容器或类似的东西不能AMR数据)

的前6个字节的文件是一个AMR签名,并且该文件的其余部分由音频帧。所以,你应该能够采取的第一个文件的全部内容来连接两个AMR文件,然后追加第二个文件的内容的减去其前6个字节

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.

这篇关于合并AMR音频文件在Java和Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆