php - 使用 SoX 库混合样本
问题描述
我有一些混音器的数据,例如:
[
{
"sample": "sample1.mp3",
"time": 0
},
{
"sample": "sample2.mp3",
"time": 0.3342
},
{
"sample": "sample3.mp3",
"time": 0.3342,
// stop after means interrupt play this sample on this time in time scale
"stop_after": 0.3442
},
{
"sample": "sample4.mp3",
"time": 1.22443
},
{
"sample": "sample1.mp3",
"time": 1.223434,
"stop_after": 1.224244
}
]
创建单个文件 mp3 的最简单方法是什么?我将在 PHP 上为此编写一个包装器。我只需要了解正确的方法和算法。
解决方案
推荐阅读
- c - 读尾数
- powershell - Powershell仅复制具有文件夹结构的选定文件
- javascript - 如何将某些内容(即变量)从 JavaScript 文件传输到 HTML 文件?
- javascript - 使用Javascript从点击事件中的“.row”中获取选择字段的值
- eclipse-plugin - 加载的类的类型不正确:expected(org.eclipse.ui.menus.WorkbenchWindowControlContribution) got (de.blub.menu.ToolbarContributionItem)
- excel - 表格Excel VBA中的总和过滤列
- c# - InvalidCastException:指定的强制转换在 Unity 中无效
- excel - 如何为我的图表创建测量错误
- c++ - 如何在 c++ "XY:56:21AM" 中从这个字符串中分离 HH、MM、SS 和子午线?以下程序出现分段错误
- artificial-intelligence - 计算梯度下降循环内的导数