SamuelM0422 commited on
Commit
881ce66
·
verified ·
1 Parent(s): cda6d2f

Update helper_function.py

Browse files
Files changed (1) hide show
  1. helper_function.py +0 -2
helper_function.py CHANGED
@@ -27,7 +27,5 @@ def speech_to_speech_translation(filepath):
27
  speech = outputs["waveform"]
28
  synthesised_speech = speech / torch.max(torch.abs(speech)) # Normaliza para [-1, 1]
29
  synthesised_speech = (speech * max_range).numpy().astype(target_dtype)
30
-
31
- Audio(synthesised_speech, rate=16000)
32
 
33
  return (16000, synthesised_speech.squeeze()), translation
 
27
  speech = outputs["waveform"]
28
  synthesised_speech = speech / torch.max(torch.abs(speech)) # Normaliza para [-1, 1]
29
  synthesised_speech = (speech * max_range).numpy().astype(target_dtype)
 
 
30
 
31
  return (16000, synthesised_speech.squeeze()), translation