合并两个mp3音频文件合并为一个 [英] Merge two mp3 audio files into one

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

问题描述

我有我需要在彼此的顶部合并两个音频文件。每一个MP3是对话的一方,因此从理论上讲,当我合并这两个文件一起,我应该听到完整的对话。有没有人曾经做到了这一点。NET中?

I have two audio files that I need to merge on top of each other. Each mp3 is one side of a conversation, so in theory when I merge these two files together I should hear a complete conversation. Has anybody ever accomplished this in .Net?

我见过的人串联音频文件一起的例子,但我要重申,我并不想这样做。我想合并/混合两个音轨所以在同一个音频文件。

任何帮助将是AP preciated。

Any help would be appreciated.

我在看的n音讯库。实际code答案会非常有帮助。

I am looking at the NAudio library. Actual code answers would be very helpful as well.

推荐答案

我结束了使用红袜做合并。

I ended up using Sox to do the merge.

http://sox.sourceforge.net/

sox.exe -m fileone.mp3 filetwo.mp3 output.mp3

sox.exe -m fileone.mp3 filetwo.mp3 output.mp3

红袜队不具备的MP3支持,所以你需要下载这个版本里面有编译成可执行文件的引用。另外,你可以搜索DLL和最新的应接他们回家。

Sox doesn't have support for mp3s so you need to download this version which has those references compiled into the executable. Additionally you can search for the dll and the latest should pick them up.

HTTP://www.$c$cproject.com/KB/ ASPNET / Compiling_SOX_with_Lame.aspx

使用Process类从净调用此。

Use a Process class to call this from .Net.

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

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