Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix: tts error
Browse files
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(
|