混合音频文件 [英] Mixing Audio Files

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

问题描述

我有一些音频文件:

  • 在F_1 - 长度为10秒
  • F_2 - 长3秒
  • F_3 - 长1秒

我需要的是找到一种方法来在F_1混合(合并),F2和F3在特定部分(即位置等于6秒)

What I need is to find a way to mix(merge) f2 and f3 at particular section in f_1 (i.e. position which is equal to 6 sec)

我是看着音频的例子,但他们不帮我很多,所以任何想法\引用\可能帮助文档?

I was looking at Audio examples but they don't help me much so any ideas\references\ documentation that might help?

非常感谢!

推荐答案

不幸的是,我不认为有设备做文件mixdowns上的任何东西。在我看来,你有两个选择:

Unfortunately, I don't think there's anything on the device to do file mixdowns. As I see it, you've got two options:

1)同时发送文件到服务器,然后使用的ffmpeg或其他一些免费工具做mixdowns。

1) Send both files to a server and use ffmpeg or some other free tool to do the mixdowns.

2)如果它的东西,必须留在本地的电话,您可以加载使用Android的Soundpool音频(http://developer.android.com/reference/android/media/SoundPool.html),并将其设置为发挥在同一时间。您在这里可以找到这个问题一个很好的教程:<一href="http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html">http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html

2) If it's something that must stay local to the phone, you could load the audio using the Android SoundPool (http://developer.android.com/reference/android/media/SoundPool.html) and set them to play at the same time. You can find a good tutorial on the subject here: http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html

声池要求您管理多个文件,而不是做mixdowns和播放的单个文件。这将是冷静,如果在的Soundpool让你虎视眈眈作为iostream的,但是,唉,该SDK似乎并没有允许它的输出。此外,这将是,如果AudioRecorder让你抢的音乐层流很好......但看起来并不可能要么。音频输入列表:<一href="http://developer.android.com/reference/android/media/MediaRecorder.AudioSource.html">http://developer.android.com/reference/android/media/MediaRecorder.AudioSource.html

The sound pool requires you to manage multiple files rather than doing mixdowns and playback of a single file. It would be cool if the soundpool let you grap the output as a IOStream but, alas, the SDK doesn't seem to allow it. Further, it would be nice if the AudioRecorder allowed you to grab a stream from the music layer...but that doesn't look possible either. List of audio inputs: http://developer.android.com/reference/android/media/MediaRecorder.AudioSource.html

我知道这是不是你在寻找什么,但希望你能够从某些环节得到了解决方法。

I know this isn't exactly what you're looking for, but hopefully you can get a workaround from some of the links.

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

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