audio - sox splice 不遵守默认的excess=0.005 和leeway=0.005 并丢失太多音频?
问题描述
使用sox splice
时,默认的余量和余量为 0.005 秒。这意味着 audio1 与 audio2 的拼接应该丢失不少于 0.01 秒的音频总数。但是,我看到的接头短于 audio1+audio2-0.01 秒。
sox splice: usage: [-h|-t|-q] {position[,excess[,leeway]]}
-h Half sine fade (default); constant gain (for correlated audio)
-t Triangular (linear) fade; constant gain (for correlated audio)
-q Quarter sine fade; constant power (for correlated audio e.g. x-fade)
position The length of part 1 (including the excess)
excess At the end of part 1 & the start of part2 (default 0.005)
leeway Before part2 (default 0.005; set to 0 for cross-fade)
这里我拼接了两个 0.046 秒的文件,最终得到一个 0.073 秒的文件:
$ soxi -D 1.wav 2.wav
0.046440
0.046440
$ sox 1.wav 2.wav 3.wav splice -h `soxi -D 1.wav`
$ soxi -D 3.wav
0.072925
为什么3.wav
这么短?
2 * 0.046440 - 0.01 = .082880
我的输出文件不应短于 0.082880。但我的输出文件是 0.072925 秒。为什么?
解决方案
推荐阅读
- javascript - 为什么在 php 中调用 modal.show() 不起作用?
- mysql - 访问 Mysql 数据库中的 Windows 文件夹
- javascript - PHP:未捕获的错误不能使用 mysqli_result 类型的对象作为数组
- sql-server - 如果我使用 nodejs 来解析它,reactjs 如何从 SQL Server 读取响应
- oracle - SQL Top 5 和其他的
- javascript - 如何过滤具有复杂场景的重复行
- json - 是否可以在 JSONField 模式中包含 ForeignKey?我还能怎么做呢?
- android - 使用 SMS Retriever API 时,有没有办法验证 SMS 的发件人?
- node.js - NodeJs/Express:授权除一个之外的所有端点
- python - Django:表单有效但未保存,因为找不到名为 app 的模块