From 9169a1e45a6ab29b13ea9f1a2eacf4d5f77a5946 Mon Sep 17 00:00:00 2001 From: Politrees <143968312+Bebra777228@users.noreply.github.com> Date: Mon, 5 Aug 2024 02:59:03 +0500 Subject: [PATCH] Update tts.py --- src/tabs/tts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tabs/tts.py b/src/tabs/tts.py index be47548e..d75748b2 100644 --- a/src/tabs/tts.py +++ b/src/tabs/tts.py @@ -22,6 +22,7 @@ def edge_tts_tab(): ref_btn = gr.Button('Обновить список моделей', variant='primary') with gr.Group(): pitch = gr.Slider(-24, 24, value=0, step=0.5, label='Регулировка тона', info='-24 - мужской голос || 24 - женский голос') + f0autotune = gr.Checkbox(label="Автотюн", info='Автоматически корректирует высоту тона для более гармоничного звучания вокала', value=False) with gr.Column(variant='panel', scale=3): tts_voice = gr.Audio(label='TTS голос') @@ -68,6 +69,6 @@ def edge_tts_tab(): generate_btn.click(tts_conversion, inputs=[ text_input, rvc_model, voice, pitch, index_rate, filter_radius, volume_envelope, - f0_method, hop_length, protect, output_format, f0_min, f0_max + f0_method, hop_length, protect, output_format, f0autotune, f0_min, f0_max ], outputs=[converted_tts_voice, tts_voice])