From 369a91291469a6284b921fb4f4b9a66a3095136c Mon Sep 17 00:00:00 2001 From: erogol Date: Fri, 12 Jun 2020 12:11:23 +0200 Subject: [PATCH] more comments to audio.py --- utils/audio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/audio.py b/utils/audio.py index 13eab3d6..f941f609 100644 --- a/utils/audio.py +++ b/utils/audio.py @@ -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