Spaces:
Running
Running
kevinwang676
commited on
Commit
•
965f71e
1
Parent(s):
379b91d
Update app.py
Browse files
app.py
CHANGED
@@ -277,8 +277,6 @@ def convert(start_time, song_name_src, song_name_ref, src_audio, ref_audio, chec
|
|
277 |
os.system(f"python inference.py --src_wav_path audio_src.wav --ref_wav_path voiced_audio.wav --key_shift {key_shift} --speech_enroll")
|
278 |
|
279 |
if src_audio is None:
|
280 |
-
return "output_svc/NeuCoSVCv2.wav"
|
281 |
-
else:
|
282 |
audio_vocal = AudioSegment.from_file("output_svc/NeuCoSVCv2.wav", format="wav")
|
283 |
|
284 |
# Load the second audio file
|
@@ -294,6 +292,8 @@ def convert(start_time, song_name_src, song_name_ref, src_audio, ref_audio, chec
|
|
294 |
combined_audio.export(f"{song_name_src}-AI翻唱.wav", format="wav")
|
295 |
|
296 |
return f"{song_name_src}-AI翻唱.wav"
|
|
|
|
|
297 |
|
298 |
|
299 |
|
|
|
277 |
os.system(f"python inference.py --src_wav_path audio_src.wav --ref_wav_path voiced_audio.wav --key_shift {key_shift} --speech_enroll")
|
278 |
|
279 |
if src_audio is None:
|
|
|
|
|
280 |
audio_vocal = AudioSegment.from_file("output_svc/NeuCoSVCv2.wav", format="wav")
|
281 |
|
282 |
# Load the second audio file
|
|
|
292 |
combined_audio.export(f"{song_name_src}-AI翻唱.wav", format="wav")
|
293 |
|
294 |
return f"{song_name_src}-AI翻唱.wav"
|
295 |
+
else:
|
296 |
+
return "output_svc/NeuCoSVCv2.wav"
|
297 |
|
298 |
|
299 |
|