Spaces:
Build error
Build error
Update utils.py
Browse files
utils.py
CHANGED
@@ -622,10 +622,12 @@ class Utils_functions:
|
|
622 |
)
|
623 |
##encode a wav file using scipy
|
624 |
# wav, sr = librosa.load("test.wav", sr=self.args.sr)
|
625 |
-
|
|
|
|
|
626 |
return (
|
627 |
np.clip(spec, -1.0, 1.0),
|
628 |
-
|
629 |
)
|
630 |
|
631 |
def render_gradio(self, models_ls_1, models_ls_2, models_ls_3, train=True):
|
|
|
622 |
)
|
623 |
##encode a wav file using scipy
|
624 |
# wav, sr = librosa.load("test.wav", sr=self.args.sr)
|
625 |
+
filepath = "tmp/newwav.wav"
|
626 |
+
sf.write(filepath, np.int16(abwvc * 32767.0, self.args.sr)
|
627 |
+
|
628 |
return (
|
629 |
np.clip(spec, -1.0, 1.0),
|
630 |
+
filepath,
|
631 |
)
|
632 |
|
633 |
def render_gradio(self, models_ls_1, models_ls_2, models_ls_3, train=True):
|