mirror of https://github.com/coqui-ai/TTS.git
more comments to audio.py
This commit is contained in:
parent
bc69a54f44
commit
369a912914
utils
|
@ -57,8 +57,10 @@ class AudioProcessor(object):
|
||||||
self.stats_path = stats_path
|
self.stats_path = stats_path
|
||||||
# setup stft parameters
|
# setup stft parameters
|
||||||
if hop_length is None:
|
if hop_length is None:
|
||||||
|
# compute stft parameters from given time values
|
||||||
self.n_fft, self.hop_length, self.win_length = self._stft_parameters()
|
self.n_fft, self.hop_length, self.win_length = self._stft_parameters()
|
||||||
else:
|
else:
|
||||||
|
# use stft parameters from config file
|
||||||
self.hop_length = hop_length
|
self.hop_length = hop_length
|
||||||
self.win_length = win_length
|
self.win_length = win_length
|
||||||
self.n_fft = (self.num_freq - 1) * 2
|
self.n_fft = (self.num_freq - 1) * 2
|
||||||
|
|
Loading…
Reference in New Issue