audiotrans transform module to Short-Time Fourier Transformation (STFT)
pip install audiotrans-transform-stft
As audiotrans
transform module, like
audiotrans <filepath> -t stft -v -c spec
Options of the below is available through subarg (like [ foo -h ]
)
usage: stft [-h] [-v] [-w WINDOW_SIZE] [-H]
audiotrans transform module for Short-Time Fourier Transformation (STFT)
Transform wave array as np.ndarray shaped (1,) to STFT matrix as
np.ndarray shaped (1 + widnow_size/2, (len(wave) - window_size) / hop-size + 1).
optional arguments:
-h, --help show this help message and exit
-v, --verbose Run as verbose mode
-w WINDOW_SIZE, --window-size WINDOW_SIZE
Window size to FFT. Default is 1024
-H HOP_SIZE, --hop-size HOP_SIZE
Hop size to FFT. Default is 256
make test
MIT (c) keik