我最初的问题和间接解决方案在这里:https ://stackoverflow.com/questions/48161567/silence-out-regions-of-audio-based-on-a-list-of-time-stamps-using-sox-and -pyth
我有一段音频A
和一堆 [start ,end] 段S
。我想传递S
并传递A
给 SOX 和 python,以便我可以直接将S
.
我目前的解决方案更多地依赖于 python。我想使用 sox pad/trim 命令的组合来实现这一点。
我提到:http ://sox.sourceforge.net/sox.html和https://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/
https://stackoverflow.com/questions/48161567/silence-out-regions-of-audio-based-on-a-list-of-time-stamps-using-sox-and-pyth的组合加上 https:// /stackoverflow.com/questions/48208216/create-new-list-from-list-of-lists-in-python-by-grouping
帮助我得出答案。谢谢