mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
bumpup librosa version to 0.8.0
This commit is contained in:
+2
-1
@@ -6,13 +6,14 @@ from distutils.dir_util import copy_tree
|
||||
from multiprocessing import Pool
|
||||
|
||||
import librosa
|
||||
import soundfile as sf
|
||||
from tqdm import tqdm
|
||||
|
||||
|
||||
def resample_file(func_args):
|
||||
filename, output_sr = func_args
|
||||
y, sr = librosa.load(filename, sr=output_sr)
|
||||
librosa.output.write_wav(filename, y, sr)
|
||||
sf.write(filename, y, sr)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
+2
-2
@@ -275,7 +275,7 @@ class AudioProcessor(object):
|
||||
else:
|
||||
D = self._stft(y)
|
||||
S = self._amp_to_db(np.abs(D))
|
||||
return self.normalize(S)
|
||||
return self.normalize(S).astype(np.float32)
|
||||
|
||||
def melspectrogram(self, y):
|
||||
if self.preemphasis != 0:
|
||||
@@ -283,7 +283,7 @@ class AudioProcessor(object):
|
||||
else:
|
||||
D = self._stft(y)
|
||||
S = self._amp_to_db(self._linear_to_mel(np.abs(D)))
|
||||
return self.normalize(S)
|
||||
return self.normalize(S).astype(np.float32)
|
||||
|
||||
def inv_spectrogram(self, spectrogram):
|
||||
"""Converts spectrogram to waveform using librosa"""
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
bokeh==1.4.0
|
||||
numba==0.48
|
||||
bokeh==1.4.0
|
||||
+1
-1
@@ -3,7 +3,7 @@ flask
|
||||
gdown
|
||||
inflect
|
||||
jieba
|
||||
librosa==0.7.2
|
||||
librosa==0.8.0
|
||||
matplotlib
|
||||
numpy==1.18.5
|
||||
pandas
|
||||
|
||||
Reference in New Issue
Block a user