Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1484,7 +1484,7 @@ def zip_downloader(model):
|
|
1484 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="rose"), title="BasetaTube RVC TTS") as app:
|
1485 |
with gr.Tabs():
|
1486 |
with gr.TabItem("Inference"):
|
1487 |
-
gr.HTML("<table align='center' border='0' padding='10'><tr><td><img src='/file=Btubel.png' width='300' /></td><td align='center'><center><h1 style='font-size:
|
1488 |
|
1489 |
# Inference Preset Row
|
1490 |
# with gr.Row():
|
@@ -1500,7 +1500,12 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="rose"),
|
|
1500 |
refresh_button = gr.Button("Refresh", variant="primary")
|
1501 |
if check_for_name() != '':
|
1502 |
get_vc(sorted(names)[0])
|
1503 |
-
vc_transform0 = gr.Number(label="درجة 1الصوت: 0 من رجل إلى رجل (أو من امرأة إلى امرأة)؛ 12 من رجل الى أمرأة و-12 من أمرأة إلى رجل \n Pitch: 0 from man to man (or woman to woman); 12 from man to woman and -12 from woman to man.", value=0)
|
|
|
|
|
|
|
|
|
|
|
1504 |
#clean_button = gr.Button(i18n("卸载音色省显存"), variant="primary")
|
1505 |
spk_item = gr.Slider(
|
1506 |
minimum=0,
|
@@ -1538,7 +1543,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="rose"),
|
|
1538 |
with gr.Row():
|
1539 |
with gr.Accordion('Google TTS', open=False, visible=True):
|
1540 |
with gr.Column():
|
1541 |
-
lang = gr.Radio(label='Chinese & Japanese do not work with ElevenLabs currently.',choices=['ar',
|
1542 |
api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='', visible=False)
|
1543 |
elevenid=gr.Dropdown(label="Voice:", choices=eleven_voices, visible=False)
|
1544 |
with gr.Column():
|
@@ -1569,7 +1574,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="rose"),
|
|
1569 |
|
1570 |
with gr.Accordion('IlariaTTS', open=True):
|
1571 |
with gr.Column():
|
1572 |
-
ilariaid=gr.Dropdown(label="Voice:", choices=ilariavoices, value="
|
1573 |
ilariatext = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
|
1574 |
ilariatts_button = gr.Button(value="Speak")
|
1575 |
ilariatts_button.click(fn=ilariaTTS, inputs=[ilariatext, ilariaid], outputs=[record_button, input_audio0])
|
@@ -1658,7 +1663,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="rose"),
|
|
1658 |
label="[EXPERIMENTAL] Formant shift inference audio",
|
1659 |
info="Used for male to female and vice-versa conversions",
|
1660 |
interactive=True,
|
1661 |
-
visible=
|
1662 |
)
|
1663 |
|
1664 |
formant_preset = gr.Dropdown(
|
|
|
1484 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="rose"), title="BasetaTube RVC TTS") as app:
|
1485 |
with gr.Tabs():
|
1486 |
with gr.TabItem("Inference"):
|
1487 |
+
gr.HTML("<table align='center' border='0' padding='10'><tr><td><img src='/file=Btubel.png' width='300' /></td><td align='center'><center><h1 style='font-size:28px'>RVC TTS</h1><h1 style='font-size:28px'>تحويل النص الى صوت عربي من اى صوت تريده <br>أشترك فى قناة بسيطة تيوب للمزيد من فيديوهات التكنولوجيا و الذكاء الاصطناعى<br><a href='https://www.youtube.com/@basetatube/?sub_confirmation=1' target='_blank'>أشترك الأن</a></h1></center></td></tr></table>Huggingface port by Ilaria of the Rejekt Easy GUI")
|
1488 |
|
1489 |
# Inference Preset Row
|
1490 |
# with gr.Row():
|
|
|
1500 |
refresh_button = gr.Button("Refresh", variant="primary")
|
1501 |
if check_for_name() != '':
|
1502 |
get_vc(sorted(names)[0])
|
1503 |
+
# vc_transform0 = gr.Number(label="درجة 1الصوت: 0 من رجل إلى رجل (أو من امرأة إلى امرأة)؛ 12 من رجل الى أمرأة و-12 من أمرأة إلى رجل \n Pitch: 0 from man to man (or woman to woman); 12 from man to woman and -12 from woman to man.", value=0)
|
1504 |
+
vc_transform0 = gr.Number(
|
1505 |
+
label="""درجة 1الصوت: 0 من رجل إلى رجل (أو من امرأة إلى امرأة)؛12 من رجل الى أمرأة و-12 من أمرأة إلى رجل
|
1506 |
+
\n Pitch: 0 from man to man (or woman to woman);12 from man to woman and -12 from woman to man.""",
|
1507 |
+
value=0
|
1508 |
+
)
|
1509 |
#clean_button = gr.Button(i18n("卸载音色省显存"), variant="primary")
|
1510 |
spk_item = gr.Slider(
|
1511 |
minimum=0,
|
|
|
1543 |
with gr.Row():
|
1544 |
with gr.Accordion('Google TTS', open=False, visible=True):
|
1545 |
with gr.Column():
|
1546 |
+
lang = gr.Radio(label='Chinese & Japanese do not work with ElevenLabs currently.',choices=['ar','en','it','es','fr','pt','zh-CN','de','hi','ja'], value='ar')
|
1547 |
api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='', visible=False)
|
1548 |
elevenid=gr.Dropdown(label="Voice:", choices=eleven_voices, visible=False)
|
1549 |
with gr.Column():
|
|
|
1574 |
|
1575 |
with gr.Accordion('IlariaTTS', open=True):
|
1576 |
with gr.Column():
|
1577 |
+
ilariaid=gr.Dropdown(label="Voice:", choices=ilariavoices, value="Arabic (UAD)-Fatima- (Female)")
|
1578 |
ilariatext = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
|
1579 |
ilariatts_button = gr.Button(value="Speak")
|
1580 |
ilariatts_button.click(fn=ilariaTTS, inputs=[ilariatext, ilariaid], outputs=[record_button, input_audio0])
|
|
|
1663 |
label="[EXPERIMENTAL] Formant shift inference audio",
|
1664 |
info="Used for male to female and vice-versa conversions",
|
1665 |
interactive=True,
|
1666 |
+
visible=False,
|
1667 |
)
|
1668 |
|
1669 |
formant_preset = gr.Dropdown(
|