Two Audio Files Merged in one file, and save in the disk

吃可爱长大的小学妹 提交于 2019-12-25 03:09:05

问题


I'm trying to develop a basic program for editing audio and I'm having the following problem. I would pick two songs - separate files, no matter the format - and joining them into one. In this case, do a merge of these two files. Where would a responsible and sound with the lowest and one with the loudest sound in the foreground.

Would still need to merge these two files, the final song to be saved to disk. Does anyone know help me, recommending any library could, code, or article?

Thanks.


回答1:


Have a look at the NAudio project on codeplex. And here's an article on how to merge MP3 files with NAudio using C# and Python.

http://mark-dot-net.blogspot.com/2010/11/merging-mp3-files-with-naudio-in-c-and.html

Also check out this article about mixing WAV tracks in C# - once you have the final WAV file you can just encode it to MP3 if that's your format of choice.



来源:https://stackoverflow.com/questions/4193454/two-audio-files-merged-in-one-file-and-save-in-the-disk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!