MCPcopy Create free account
hub / github.com/espnet/espnet / _get_window_func

Method _get_window_func

espnet2/enh/decoder/stft_decoder.py:118–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

116 self.stft.hop_length = self.hop_length * fs // self.default_fs
117
118 def _get_window_func(self):
119 window_func = getattr(torch, f"{self.window}_window")
120 window = window_func(self.win_length)
121 n_pad_left = (self.n_fft - window.shape[0]) // 2
122 n_pad_right = self.n_fft - window.shape[0] - n_pad_left # noqa
123 return window
124
125 def spec_back(self, spec):
126 if self.spec_transform_type == "exponent":

Callers 2

forward_streamingMethod · 0.95
streaming_mergeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected