Skip to content

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

License

Notifications You must be signed in to change notification settings

keik/audiotrans-transform-stft

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published