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

Function get_hop_size

utils/audio.py:20–25  ·  view source on GitHub ↗
(hparams)

Source from the content-addressed store, hash-verified

18
19
20def get_hop_size(hparams):
21 hop_size = hparams['hop_size']
22 if hop_size is None:
23 assert hparams['frame_shift_ms'] is not None
24 hop_size = int(hparams['frame_shift_ms'] / 1000 * hparams['audio_sample_rate'])
25 return hop_size
26
27
28###########################################################################################

Callers 2

_stftFunction · 0.85
_istftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected