Gregniuki commited on
Commit
2c60eae
·
verified ·
1 Parent(s): 3992a21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -73,7 +73,7 @@ vocos = load_vocoder()
73
 
74
  target_sample_rate = 24000
75
  n_mel_channels = 100
76
- hop_length = 256 - 15
77
  target_rms = 0.1
78
  nfe_step = 16 # 16, 32
79
  cfg_strength = 2.0
@@ -203,7 +203,7 @@ def infer_batch(ref_audio, ref_text, gen_text_batches, exp_name, remove_silence,
203
  ema_model = F5TTS_ema_model
204
  elif exp_name == "Polish":
205
  ema_model = E2TTS_ema_model
206
- elif exp_name == "Deutsh":
207
  ema_model = E2TTS_ema_model2
208
  #ref_audio, ref_text = preprocess_ref_audio_text(ref_audio, ref_text, show_info=show_info)
209
 
@@ -516,7 +516,7 @@ with gr.Blocks() as app_tts:
516
  ref_audio_input = gr.Audio(label="Reference Audio", type="filepath")
517
  gen_text_input = gr.Textbox(label="Text to Generate", lines=10)
518
  model_choice = gr.Radio(
519
- choices=["English","Polish","Deutsh"], label="Choose TTS Model", value="English"
520
  )
521
  generate_btn = gr.Button("Synthesize", variant="primary")
522
  with gr.Accordion("Advanced Settings", open=False):
@@ -710,7 +710,7 @@ with gr.Blocks() as app_emotional:
710
 
711
  # Model choice
712
  model_choice_emotional = gr.Radio(
713
- choices=["English","Polish","Deutsh"], label="Choose TTS Model", value="English"
714
  )
715
 
716
  with gr.Accordion("Advanced Settings", open=False):
 
73
 
74
  target_sample_rate = 24000
75
  n_mel_channels = 100
76
+ hop_length = 256
77
  target_rms = 0.1
78
  nfe_step = 16 # 16, 32
79
  cfg_strength = 2.0
 
203
  ema_model = F5TTS_ema_model
204
  elif exp_name == "Polish":
205
  ema_model = E2TTS_ema_model
206
+ elif exp_name == "Deutsch":
207
  ema_model = E2TTS_ema_model2
208
  #ref_audio, ref_text = preprocess_ref_audio_text(ref_audio, ref_text, show_info=show_info)
209
 
 
516
  ref_audio_input = gr.Audio(label="Reference Audio", type="filepath")
517
  gen_text_input = gr.Textbox(label="Text to Generate", lines=10)
518
  model_choice = gr.Radio(
519
+ choices=["English","Polish","Deutsch"], label="Choose TTS Model", value="English"
520
  )
521
  generate_btn = gr.Button("Synthesize", variant="primary")
522
  with gr.Accordion("Advanced Settings", open=False):
 
710
 
711
  # Model choice
712
  model_choice_emotional = gr.Radio(
713
+ choices=["English","Polish","Deutsch"], label="Choose TTS Model", value="English"
714
  )
715
 
716
  with gr.Accordion("Advanced Settings", open=False):