Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,6 +155,7 @@ def tts(
|
|
| 155 |
resample_sr=0,
|
| 156 |
rms_mix_rate=0.25,
|
| 157 |
):
|
|
|
|
| 158 |
print("------------------")
|
| 159 |
print(datetime.datetime.now())
|
| 160 |
print("Teks TTS:")
|
|
@@ -278,12 +279,6 @@ Pembuktian algoritma **Retrieval-based Voice Conversion (RVC)** dan teknologi **
|
|
| 278 |
# Membuat aplikasi Gradio
|
| 279 |
app = gr.Blocks(theme="Thatguy099/Sonix", title="TTS-RVC-Artis Indonesia")
|
| 280 |
with app:
|
| 281 |
-
# Tambahkan banner di bagian atas
|
| 282 |
-
gr.HTML("""
|
| 283 |
-
<div style="text-align: center; margin-top: 20px;">
|
| 284 |
-
<img src="https://i.ibb.co.com/6WRGbHS/banner-artis.jpg" alt="Banner" style="width: 100%; max-width: 1200px; border-radius: 10px;">
|
| 285 |
-
</div>
|
| 286 |
-
""")
|
| 287 |
gr.Markdown(initial_md)
|
| 288 |
with gr.Row():
|
| 289 |
with gr.Column():
|
|
@@ -301,7 +296,7 @@ with app:
|
|
| 301 |
label="",
|
| 302 |
choices=["rmvpe"],
|
| 303 |
value="rmvpe",
|
| 304 |
-
visible=
|
| 305 |
)
|
| 306 |
index_rate = gr.Slider(
|
| 307 |
minimum=0,
|
|
@@ -336,11 +331,13 @@ with app:
|
|
| 336 |
)
|
| 337 |
tts_text = gr.Textbox(label="Teks Input", value="Konversi dari teks ke suara dalam bahasa Indonesia.")
|
| 338 |
with gr.Column():
|
| 339 |
-
|
|
|
|
| 340 |
info_text = gr.Textbox(label="Informasi Output")
|
| 341 |
with gr.Column():
|
| 342 |
-
|
| 343 |
-
|
|
|
|
| 344 |
but0.click(
|
| 345 |
tts,
|
| 346 |
[
|
|
|
|
| 155 |
resample_sr=0,
|
| 156 |
rms_mix_rate=0.25,
|
| 157 |
):
|
| 158 |
+
print("RVC TTS V2")
|
| 159 |
print("------------------")
|
| 160 |
print(datetime.datetime.now())
|
| 161 |
print("Teks TTS:")
|
|
|
|
| 279 |
# Membuat aplikasi Gradio
|
| 280 |
app = gr.Blocks(theme="Thatguy099/Sonix", title="TTS-RVC-Artis Indonesia")
|
| 281 |
with app:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 282 |
gr.Markdown(initial_md)
|
| 283 |
with gr.Row():
|
| 284 |
with gr.Column():
|
|
|
|
| 296 |
label="",
|
| 297 |
choices=["rmvpe"],
|
| 298 |
value="rmvpe",
|
| 299 |
+
visible=False,
|
| 300 |
)
|
| 301 |
index_rate = gr.Slider(
|
| 302 |
minimum=0,
|
|
|
|
| 331 |
)
|
| 332 |
tts_text = gr.Textbox(label="Teks Input", value="Konversi dari teks ke suara dalam bahasa Indonesia.")
|
| 333 |
with gr.Column():
|
| 334 |
+
with gr.Row():
|
| 335 |
+
but0 = gr.Button("Konversi", variant="primary")
|
| 336 |
info_text = gr.Textbox(label="Informasi Output")
|
| 337 |
with gr.Column():
|
| 338 |
+
with gr.Row():
|
| 339 |
+
edge_tts_output = gr.Audio(label="Suara Edge", type="filepath")
|
| 340 |
+
tts_output = gr.Audio(label="Hasil")
|
| 341 |
but0.click(
|
| 342 |
tts,
|
| 343 |
[
|