Sox
根據傳遞給 sox 的時間戳使音頻區域靜音
我最初的問題和間接解決方案在這裡: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
幫助我得出答案。謝謝