From 355e1f47abf5c678e881a9b09afe0365565ce710 Mon Sep 17 00:00:00 2001 From: Julian Weber Date: Thu, 22 Apr 2021 15:50:29 +0200 Subject: [PATCH] fix dumb mistake --- TTS/utils/audio.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TTS/utils/audio.py b/TTS/utils/audio.py index b9a02942..1d7b7034 100644 --- a/TTS/utils/audio.py +++ b/TTS/utils/audio.py @@ -51,7 +51,7 @@ class AudioProcessor(object): sample_rate=None, resample=False, num_mels=None, - log_func="np.log10", + log_func="np.log", min_level_db=None, frame_shift_ms=None, frame_length_ms=None, @@ -431,10 +431,10 @@ class AudioProcessor(object): def log_(x, base): if base == 10: - return np.log(x) - return np.log10(x) + return np.log10(x) + return np.log(x) def exp_(x, base): - if base == np.e: - return np.exp(x) - return base ** x + if base == 10: + return np.power(10, x) + return np.exp(x)