Shortcuts

asteroid.filterbanks.stft_fb module

class asteroid.filterbanks.stft_fb.STFTFB(n_filters, kernel_size, stride=None, window=None, **kwargs)[source]

Bases: asteroid.filterbanks.enc_dec.Filterbank

STFT filterbank.

Parameters:
  • n_filters (int) – Number of filters. Determines the length of the STFT filters before windowing.
  • kernel_size (int) – Length of the filters (i.e the window).
  • stride (int, optional) – Stride of the convolution (hop size). If None (default), set to kernel_size // 2.
  • window (numpy.ndarray, optional) – If None, defaults to np.sqrt(np.hanning()).
Variables:

n_feats_out (int) – Number of output filters.

filters

Abstract method for filters.

asteroid.filterbanks.stft_fb.perfect_synthesis_window(analysis_window, hop_size)[source]
Computes a window for perfect synthesis given an analysis window and
a hop size.
Parameters:
  • analysis_window (np.array) – Analysis window of the transform.
  • hop_size (int) – Hop size in number of samples.
Returns:

np.array – the synthesis window to use for perfectly inverting the STFT.

Read the Docs v: v0.3.3
Versions
latest
stable
v0.3.3
v0.3.2
v0.3.1
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.