MoHamdyy commited on
Commit
e8835d5
·
1 Parent(s): 4f298d6

Fix syntax error in TTS stage and complete pipeline

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -470,7 +470,7 @@ def full_speech_translation_pipeline(audio_input_path: str):
470
  try:
471
  print("TTS: Synthesizing English speech...")
472
  sequence = text_to_seq(english_translation).unsqueeze(0).to(DEVICE)
473
- generated_mel, _ = TTS_MODEL.inference(sequence, max_length=hp.max_mel_time-50, gate_threshold=1e-5, with_tqdm=False)
474
 
475
  print(f"TTS: Generated mel shape: {generated_mel.shape if generated_mel is not None else 'None'}")
476
  if generated_mel is not None and generated_mel.numel() > 128: # Ensure minimum size
 
470
  try:
471
  print("TTS: Synthesizing English speech...")
472
  sequence = text_to_seq(english_translation).unsqueeze(0).to(DEVICE)
473
+ generated_mel, _ = TTS_MODEL.inference(sequence, max_length=hp.max_mel_time-50, gate_threshold=1e-4, with_tqdm=False)
474
 
475
  print(f"TTS: Generated mel shape: {generated_mel.shape if generated_mel is not None else 'None'}")
476
  if generated_mel is not None and generated_mel.numel() > 128: # Ensure minimum size