Kevin676 commited on
Commit
714fb48
1 Parent(s): af163b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -35,7 +35,7 @@ from speechbrain.pretrained import SpectralMaskEnhancement
35
  enhance_model = SpectralMaskEnhancement.from_hparams(
36
  source="speechbrain/metricgan-plus-voicebank",
37
  savedir="pretrained_models/metricgan-plus-voicebank",
38
- run_opts={"device":"cuda"},
39
  )
40
 
41
  from TTS.tts.utils.synthesis import synthesis
@@ -169,8 +169,8 @@ def greet(Text,Voicetoclone,VoiceMicrophone):
169
 
170
  voicefixer.restore(input=out_path, # input wav file path
171
  output="audio1.wav", # output wav file path
172
- cuda=True, # whether to use gpu acceleration'
173
- # cuda = False,
174
  mode = 0) # You can try out mode 0, 1, or 2 to find out the best result
175
 
176
  noisy = enhance_model.load_audio(
 
35
  enhance_model = SpectralMaskEnhancement.from_hparams(
36
  source="speechbrain/metricgan-plus-voicebank",
37
  savedir="pretrained_models/metricgan-plus-voicebank",
38
+ #run_opts={"device":"cuda"},
39
  )
40
 
41
  from TTS.tts.utils.synthesis import synthesis
 
169
 
170
  voicefixer.restore(input=out_path, # input wav file path
171
  output="audio1.wav", # output wav file path
172
+ # cuda=True, # whether to use gpu acceleration'
173
+ cuda = False,
174
  mode = 0) # You can try out mode 0, 1, or 2 to find out the best result
175
 
176
  noisy = enhance_model.load_audio(