合并多个MP3文件 [英] merging multiple mp3 files

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

问题描述

我要寻找一种方法来自动的Windows中的指定文件夹中找到的任何MP3文件的合并。是否有存在来完成这个任务的脚本?我使用的拆分文件5分钟的环节,所以我真的不关心任何标记信息是preserved语音录制节目。我只希望有反对5-6不同的块整个记录一个大的音频文件。请让我知道这是可能的。

I am looking for a way to automate the merging of any mp3 files found within a specified folder in windows. Is there any script that exists to accomplish this task? I am using a voice recording program that split up a file in 5 minute segments so i dont really care about any tag info being preserved. I only wish to have one big audio file with the whole recording opposed to 5-6 different chunks. Please let me know if this is possible

感谢

编辑:另外一个要求是,与MP3文件的文件夹的结构所以有与$ P $ 009 PFIX是一起去多个MP3文件。再就是用$ P $ 010 PFIX多个MP3文件都应该形成一个文件。我需要它能够智能串接所有009组文件和所有010组例如文件

An additional requirement is that the folder with the mp3 files are structured so there are multiple mp3 files with prefix 009 that go together. then there are multiple mp3 files with prefix 010 that all should form one file. I need it to intelligently concatenate all 009 group of files and all 010 group of files for example

推荐答案

下面是一个示例code如何合并包括mp3任何文件放在一起考虑你有文件A,B,C,你想这一切合并ç一个文件。

here is a sample code how to merge any files including mp3 together consider you have files a, b, c and you want to merge it all to c one file.

      byte[] a = File.ReadAllBytes(txt_a_path.Text);
      byte[] b = File.ReadAllBytes(txt_b_path.Text);
      byte[] c = new byte[a.Length + b.Length];
      a.CopyTo(c, 0);
      b.CopyTo(c, a.Length);
      File.WriteAllBytes(txt_c_path.Text, c);

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

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