LoginSignup
0
0

More than 5 years have passed since last update.

無音区間でファイルを分割するエイリアス shell script + sox

Posted at

目的

ファイルを分割するスクリプトを組む

準備

rc ファイルにスクリプトを登録する

.bashrc
function split_sound () {
/usr/local/bin/sox -V3 $1 $2 silence -l 1 0.2 0.1% 1 0.2 0.1%: newfile : restart
}

alias splitsound=split_sound

設定ファイルを読み込む

$ source ~/.bashrc

使い方

$ splitsound test.wav test_part.wav

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0