kevinwang676 commited on
Commit
a4e1652
1 Parent(s): c53da4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -69,10 +69,10 @@ def vc_en(text, audio_ref, style_mode):
69
  return "output.wav"
70
 
71
  def vc_zh(text, audio_ref):
72
- source_se = torch.load(f'{ckpt_base}/zh_default_se.pth').to(device)
73
  save_path = "output.wav"
74
  src_path = "tmp.wav"
75
- base_speaker_tts.tts(text, src_path, speaker='default', language='Chinese', speed=1.0)
76
 
77
  reference_speaker = audio_ref
78
  target_se, audio_name = se_extractor.get_se(reference_speaker, tone_color_converter, target_dir='processed', vad=True)
 
69
  return "output.wav"
70
 
71
  def vc_zh(text, audio_ref):
72
+ source_se = torch.load(f'{ckpt_base_zh}/zh_default_se.pth').to(device)
73
  save_path = "output.wav"
74
  src_path = "tmp.wav"
75
+ base_speaker_tts_zh.tts(text, src_path, speaker='default', language='Chinese', speed=1.0)
76
 
77
  reference_speaker = audio_ref
78
  target_se, audio_name = se_extractor.get_se(reference_speaker, tone_color_converter, target_dir='processed', vad=True)