LoginSignup
3
3

More than 5 years have passed since last update.

soxで全部の音をノーマライズ

Posted at

soxをインストール

brew install sox

スクリプト

normalize.zsh
#!/bin/zsh

# NEED sox
# brew install sox

EXPORT_DIR=normalized

# input folder
function mkdir_ex() {
    # create folder
    if [ ! -d $1 ]
    then
        mkdir $1
    fi
}
# normalize
function normalize() {
  sox $1 $EXPORT_DIR/$1 norm -1
}

mkdir_ex $EXPORT_DIR

while [ "$1" != "" ]
do
  normalize $1
  shift
done

使い方

usage.zsh
./normalize.zsh *.aif
3
3
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
3
3