six windows

#!/bin/bash

for file in *.wav
do
    outfile="${file%.*}1.png"
    sox "$file" -n spectrogram -x 512 -w hann -a -r -o "$outfile"

    outfile="${file%.*}2.png"
    sox "$file" -n spectrogram -x 512 -w hamming -a -r -o "$outfile"

    outfile="${file%.*}3.png"
    sox "$file" -n spectrogram -x 512 -w bartlett -a -r -o "$outfile"

    outfile="${file%.*}4.png"
    sox "$file" -n spectrogram -x 512 -w rectangular -a -r -o "$outfile"

    outfile="${file%.*}5.png"
    sox "$file" -n spectrogram -x 512 -w kaiser -a -r -o "$outfile"

    outfile="${file%.*}6.png"
    sox "$file" -n spectrogram -x 512 -w dolph -a -r -o "$outfile"


done

댓글

이 블로그의 인기 게시물

파이썬으로 Homomorphic Filtering 하기

파이썬으로 2D FFT/iFFT 하기: numpy 버전