在Python中组合多个音频文件(有延迟) [英] Combining multiple audio files in Python (with delay)

查看:80
本文介绍了在Python中组合多个音频文件(有延迟)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找在Python中组合各种音频文件(mp3)的方法.要求之一是我需要能够在每个文件的末尾指定一个延迟.为了说明,像这样:

I'm looking to combine a range of different audio files (mp3) in Python. One of the requirements is that I need to be able to specify a delay at the end of each file. To illustrate, something like:

[file1.mp3 -------- 3秒----------] [延迟--------- 2秒--------][file2.mp3] ------------- 4秒] [延迟--------- 2秒] [file3.mp3 ---------- 3秒---------]

[file1.mp3--------3 seconds----------][delay---------2 seconds--------][file2.mp3]-------------4 seconds][delay---------2 seconds][file3.mp3----------3 seconds---------]

这里有人知道可以完成此操作的任何mp3库吗?在这里,Python并不是必需的.如果使用另一种语言会更简单,那会没事的.

Does anyone here know of any mp3 libraries that can accomplish this? Python isn't really a necessity here. If it'll be easier in another language, that'll be fine.

推荐答案

我认为 FFmpeg 可以做到这一点,给出正确的论据.不需要使用库.

I think FFmpeg can do this, given the right arguments. No real need to use a library.

这篇关于在Python中组合多个音频文件(有延迟)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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