Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,16 +26,16 @@ def inference(audio_1, audio_2):
|
|
26 |
|
27 |
# Normalize to prevent clipping
|
28 |
full_audio = librosa.util.normalize(full_audio)
|
29 |
-
|
30 |
# Write the output
|
31 |
-
return
|
32 |
|
33 |
title = "음성 합성"
|
34 |
|
35 |
demo = gr.Interface(
|
36 |
inference,
|
37 |
[gr.Audio(type="filepath", label="Vocals"),gr.Audio(type="filepath", label="배경음")],
|
38 |
-
gr.Audio(type="
|
39 |
title=title,
|
40 |
)
|
41 |
|
|
|
26 |
|
27 |
# Normalize to prevent clipping
|
28 |
full_audio = librosa.util.normalize(full_audio)
|
29 |
+
sf.write("test.wav", full_audio, sr)
|
30 |
# Write the output
|
31 |
+
return "test.wav"
|
32 |
|
33 |
title = "음성 합성"
|
34 |
|
35 |
demo = gr.Interface(
|
36 |
inference,
|
37 |
[gr.Audio(type="filepath", label="Vocals"),gr.Audio(type="filepath", label="배경음")],
|
38 |
+
gr.Audio(type="filepath", label="합성 결과"),
|
39 |
title=title,
|
40 |
)
|
41 |
|