Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,6 @@ import numpy as np
|
|
27 |
import IPython
|
28 |
from IPython.display import Audio
|
29 |
|
30 |
-
|
31 |
import torch
|
32 |
import torchaudio
|
33 |
from speechbrain.pretrained import SpectralMaskEnhancement
|
@@ -166,6 +165,7 @@ def greet(Text,Voicetoclone,VoiceMicrophone):
|
|
166 |
out_path = os.path.join(OUT_PATH, file_name)
|
167 |
print(" > Saving output to {}".format(out_path))
|
168 |
ap.save_wav(wav, out_path)
|
|
|
169 |
voicefixer.restore(input=out_path, # input wav file path
|
170 |
output="audio1.wav", # output wav file path
|
171 |
cuda=True, # whether to use gpu acceleration
|
|
|
27 |
import IPython
|
28 |
from IPython.display import Audio
|
29 |
|
|
|
30 |
import torch
|
31 |
import torchaudio
|
32 |
from speechbrain.pretrained import SpectralMaskEnhancement
|
|
|
165 |
out_path = os.path.join(OUT_PATH, file_name)
|
166 |
print(" > Saving output to {}".format(out_path))
|
167 |
ap.save_wav(wav, out_path)
|
168 |
+
|
169 |
voicefixer.restore(input=out_path, # input wav file path
|
170 |
output="audio1.wav", # output wav file path
|
171 |
cuda=True, # whether to use gpu acceleration
|