fantiti commited on
Commit
8fb1494
·
verified ·
1 Parent(s): fef11a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -220,7 +220,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
220
  speed_input = gr.Slider(
221
  minimum=-200,
222
  maximum=200,
223
- label="Velocidade (%)",
224
  value=0,
225
  interactive=True
226
  )
@@ -228,7 +228,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
228
  pitch_input = gr.Slider(
229
  minimum=-100,
230
  maximum=100,
231
- label="Tom (Hz)",
232
  value=0,
233
  interactive=True
234
  )
@@ -241,7 +241,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
241
  interactive=True
242
  )
243
 
244
- checkbox_cortar_silencio = gr.Checkbox(label="Cortar Silencio", interactive=True)
245
  audio_output = gr.Audio(label="Resultado", type="filepath", interactive=False)
246
 
247
  with gr.Row():
@@ -277,14 +277,14 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
277
  with gr.Row():
278
  language_input_file = gr.Dropdown(
279
  choices=available_languages,
280
- label="Idioma",
281
  value=available_languages[71] if available_languages else None
282
  )
283
 
284
  initial_voices = get_voice_options(available_languages[71], voices_data) if available_languages else []
285
  voice_model_input_file = gr.Dropdown(
286
  choices=initial_voices,
287
- label="Modelo de Voz",
288
  value=initial_voices[0] if initial_voices else None
289
  )
290
 
@@ -293,7 +293,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
293
  inputs=[language_input_file],
294
  outputs=[voice_model_input_file]
295
  )
296
- gr.Markdown("O programa vai ler linha por linha e entregar em um único áudio")
297
  # File input
298
  file_input = gr.File(
299
  label="Arquivo de Texto",
@@ -306,7 +306,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
306
  speed_input_file = gr.Slider(
307
  minimum=-200,
308
  maximum=200,
309
- label="Velocidade (%)",
310
  value=0,
311
  interactive=True
312
  )
@@ -314,7 +314,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
314
  pitch_input_file = gr.Slider(
315
  minimum=-100,
316
  maximum=100,
317
- label="Tom (Hz)",
318
  value=0,
319
  interactive=True
320
  )
@@ -330,7 +330,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
330
  checkbox_cortar_silencio_file = gr.Checkbox(label="Cortar Silencio", interactive=True)
331
  audio_output_file = gr.Audio(label="Resultado", type="filepath", interactive=False)
332
  with gr.Row():
333
- edgetts_button_file = gr.Button(value="Falar")
334
  edgetts_button_file.click(
335
  controlador_generate_audio_from_file,
336
  inputs=[
@@ -344,7 +344,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
344
  outputs=[audio_output_file]
345
  )
346
 
347
- clear_button_file = gr.ClearButton(file_input, value='Limpar')
348
 
349
  gr.Markdown("Agradecimentos a rany2 pelo Edge-TTS")
350
 
 
220
  speed_input = gr.Slider(
221
  minimum=-200,
222
  maximum=200,
223
+ label="Speech Rate Adjustment (%)",
224
  value=0,
225
  interactive=True
226
  )
 
228
  pitch_input = gr.Slider(
229
  minimum=-100,
230
  maximum=100,
231
+ label="Pitch Adjustment (Hz)",
232
  value=0,
233
  interactive=True
234
  )
 
241
  interactive=True
242
  )
243
 
244
+ checkbox_cortar_silencio = gr.Checkbox(label="Cắt silence", interactive=True)
245
  audio_output = gr.Audio(label="Resultado", type="filepath", interactive=False)
246
 
247
  with gr.Row():
 
277
  with gr.Row():
278
  language_input_file = gr.Dropdown(
279
  choices=available_languages,
280
+ label="Ngôn ngữ",
281
  value=available_languages[71] if available_languages else None
282
  )
283
 
284
  initial_voices = get_voice_options(available_languages[71], voices_data) if available_languages else []
285
  voice_model_input_file = gr.Dropdown(
286
  choices=initial_voices,
287
+ label="Chọn giọng đọc",
288
  value=initial_voices[0] if initial_voices else None
289
  )
290
 
 
293
  inputs=[language_input_file],
294
  outputs=[voice_model_input_file]
295
  )
296
+ gr.Markdown("Tạo âm sẽ đọc lần lượt theo từng dòng.")
297
  # File input
298
  file_input = gr.File(
299
  label="Arquivo de Texto",
 
306
  speed_input_file = gr.Slider(
307
  minimum=-200,
308
  maximum=200,
309
+ label="Speech Rate Adjustment (%)",
310
  value=0,
311
  interactive=True
312
  )
 
314
  pitch_input_file = gr.Slider(
315
  minimum=-100,
316
  maximum=100,
317
+ label="Pitch Adjustment (Hz)",
318
  value=0,
319
  interactive=True
320
  )
 
330
  checkbox_cortar_silencio_file = gr.Checkbox(label="Cortar Silencio", interactive=True)
331
  audio_output_file = gr.Audio(label="Resultado", type="filepath", interactive=False)
332
  with gr.Row():
333
+ edgetts_button_file = gr.Button(value="Tạo giọng đọc")
334
  edgetts_button_file.click(
335
  controlador_generate_audio_from_file,
336
  inputs=[
 
344
  outputs=[audio_output_file]
345
  )
346
 
347
+ clear_button_file = gr.ClearButton(file_input, value='Clear')
348
 
349
  gr.Markdown("Agradecimentos a rany2 pelo Edge-TTS")
350