问题描述
使用 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 秒。为什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)