以音频文件合并在Android的最佳途径途径、音频、文件合并、Android

2023-09-06 04:43:18 作者:菊如黑洞

我开发录像的应用程序,包括暂停/播放选项。

I am developing Recording App that includes Pause/Play option.

我试图与这两个媒体录制和 AudioRecord

在的情况下的 AudioRecord ,录制的音频消耗较大的尺寸,因此,如果拍摄尺寸的增加说的,例如:如果我录制1分钟的音频它的消耗40到50MB 一个真的paining通过将其转换为合并。原始文件和发送到PHP服务器

In case of AudioRecord , the recorded audio consumes larger size, so if the recording size increases say for eg: if i record 1 min audio it consumes 40 to 50MB an it really paining to combine by converting it to .raw file and send to php server.

所以我试图用媒体录制,它的消耗更少的尺寸,但不能使用录音处理的previous的方法结合起来。

So i tried with Media Recorder, it consumes less size,but not able to combine using the previous way handled in Audio Record.

下一步我试着用的Andr​​oid NDK - 真正paining甚至设置过程

Next step i tried with Android NDK- really paining for even Set up process.

现在我的问题是,它是结合录制的音频文件的最好方法

Now my question is that which is the best way to combine recorded audio files

在使用的Andr​​oid NDK 从音频读取的字节数据,并结合 - 如果我用这个有问题的记录格式头说,AMR,WAV这样的。

另外,如果我用这个,我是没有抽到javax.sound包,所以我想用插件,但没有运气。

Also if i try with this , i am not able to get javax.sound package , So i tried with Plugins but no luck..

请推荐要做到这一点最好的办法。另外我想这一切以下链接

Please Suggest best way to do this. Also i tried with all this following links

Audio链接1

音频连接2

Audio链接3

音频连接4

我提供很好的教程或样品或links.Thanks。

Provide me Good tutorial or samples or links.Thanks.

推荐答案

对于这样的事情你最好的选择是使用NDK开发本地C ++ code。

For something like this your best bet would be to develop native C++ code using the NDK.