以音频文件合并在Android的最佳途径 [英] Best Way to combine Audio files in Android

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

问题描述

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

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

  1. 在使用的Andr​​oid NDK
  2. 从音频读取的字节数据,并结合 - 如果我用这个有问题的记录格式头说,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

<一个href="http://$c$c.google.com/p/krvarma-android-samples/source/browse/trunk/AudioRecorder.2/src/com/varma/samples/audiorecorder/RecorderActivity.java">Audio链接1

音频连接2

<一个href="http://stackoverflow.com/questions/6128440/is-there-pause-available-in-mediarecorder-class">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.

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

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