MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / _stft

Function _stft

utils/audio.py:29–31  ·  view source on GitHub ↗
(y, hparams)

Source from the content-addressed store, hash-verified

27
28###########################################################################################
29def _stft(y, hparams):
30 return librosa.stft(y=y, n_fft=hparams['fft_size'], hop_length=get_hop_size(hparams),
31 win_length=hparams['win_size'], pad_mode='constant')
32
33
34def _istft(y, hparams):

Callers

nothing calls this directly

Calls 1

get_hop_sizeFunction · 0.85

Tested by

no test coverage detected