xJuuzouYTx
commited on
Commit
•
709d04e
1
Parent(s):
86872c6
[ADD] coquitts
Browse files- app.py +1 -1
- tts/conversion.py +1 -1
app.py
CHANGED
@@ -159,7 +159,7 @@ def update_tts_methods_voice(select_value):
|
|
159 |
elif select_value == 'ElevenLabs':
|
160 |
return gr.update(choices=ELEVENLABS_VOICES_NAMES), gr.Markdown.update(visible=True), gr.Textbox.update(visible=True), gr.Radio.update(visible=False)
|
161 |
elif select_value == 'CoquiTTS':
|
162 |
-
return gr.Dropdown(visible=False), gr.Markdown.update(visible=True), gr.Textbox.update(visible=False), gr.Radio.update(visible=
|
163 |
|
164 |
with gr.Blocks() as app:
|
165 |
gr.HTML("<h1> Simple RVC Inference - by Juuxn 💻 </h1>")
|
|
|
159 |
elif select_value == 'ElevenLabs':
|
160 |
return gr.update(choices=ELEVENLABS_VOICES_NAMES), gr.Markdown.update(visible=True), gr.Textbox.update(visible=True), gr.Radio.update(visible=False)
|
161 |
elif select_value == 'CoquiTTS':
|
162 |
+
return gr.Dropdown(visible=False), gr.Markdown.update(visible=True), gr.Textbox.update(visible=False), gr.Radio.update(visible=True)
|
163 |
|
164 |
with gr.Blocks() as app:
|
165 |
gr.HTML("<h1> Simple RVC Inference - by Juuxn 💻 </h1>")
|
tts/conversion.py
CHANGED
@@ -30,7 +30,7 @@ coquiTTS = CoquiTTS()
|
|
30 |
def tts_infer(tts_text, model_url, tts_method, tts_model, tts_api_key, language):
|
31 |
if not tts_text:
|
32 |
return 'Primero escribe el texto que quieres convertir.', None
|
33 |
-
if not tts_model:
|
34 |
return 'Selecciona un modelo TTS antes de convertir.', None
|
35 |
|
36 |
f0_method = "harvest"
|
|
|
30 |
def tts_infer(tts_text, model_url, tts_method, tts_model, tts_api_key, language):
|
31 |
if not tts_text:
|
32 |
return 'Primero escribe el texto que quieres convertir.', None
|
33 |
+
if not tts_model and tts_method != 'CoquiTTS':
|
34 |
return 'Selecciona un modelo TTS antes de convertir.', None
|
35 |
|
36 |
f0_method = "harvest"
|