audiotrans-transform-stft

audiotrans transform module to Short-Time Fourier Transformation (STFT)


License
MIT
Install
pip install audiotrans-transform-stft==0.1.0.dev2

Documentation

audiotrans-transform-stft

License Python PyPI Travis CI Coverage Status

audiotrans transform module to Short-Time Fourier Transformation (STFT)

Installation

pip install audiotrans-transform-stft

Usage

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

Test

make test

License

MIT (c) keik