ArkanDash commited on
Commit
58f0474
1 Parent(s): da398a7

fix: tts error

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -67,6 +67,7 @@ def create_vc_fn(tgt_sr, net_g, vc, if_f0, file_index):
67
  return "You need to enter text and select a voice", None
68
  asyncio.run(edge_tts.Communicate(tts_text, "-".join(tts_voice.split('-')[:-1])).save("tts.mp3"))
69
  audio, sr = librosa.load("tts.mp3", sr=16000, mono=True)
 
70
  times = [0, 0, 0]
71
  f0_up_key = int(f0_up_key)
72
  audio_opt = vc.pipeline(
 
67
  return "You need to enter text and select a voice", None
68
  asyncio.run(edge_tts.Communicate(tts_text, "-".join(tts_voice.split('-')[:-1])).save("tts.mp3"))
69
  audio, sr = librosa.load("tts.mp3", sr=16000, mono=True)
70
+ vc_input = "tts.mp3"
71
  times = [0, 0, 0]
72
  f0_up_key = int(f0_up_key)
73
  audio_opt = vc.pipeline(