more comments to audio.py

This commit is contained in:
erogol 2020-06-12 12:11:23 +02:00
parent bc69a54f44
commit 369a912914
1 changed files with 2 additions and 0 deletions

View File

@ -57,8 +57,10 @@ class AudioProcessor(object):
self.stats_path = stats_path
# setup stft parameters
if hop_length is None:
# compute stft parameters from given time values
self.n_fft, self.hop_length, self.win_length = self._stft_parameters()
else:
# use stft parameters from config file
self.hop_length = hop_length
self.win_length = win_length
self.n_fft = (self.num_freq - 1) * 2