LoginSignup
0
0

More than 3 years have passed since last update.

soxコマンド覚書き

Last updated at Posted at 2021-04-20

使おうとする度に忘れて調べているので、自分の為に載せておきます。

オーディオ情報の表示

soxiコマンドを使う

% soxi input.mp3

Input File     : 'input.mp3'
Channels       : 1
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:09:02.33 = 23916797 samples = 40674.8 CDDA sectors
File Size      : 21.7M
Bit Rate       : 320k
Sample Encoding: MPEG audio (layer I, II or III)

オーディオ形式の変換

拡張子で指定すればOK

% sox input.wav output.flac

チャンネル数やサンプリングレートの変換

モノラル、16kHzにする場合

% sox input.flac output.flac channels 1 rate 16k

音量調整

音量をいい塩梅にしてくれる

% sox input.flac output.flac norm
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