Seyed Morteza Hosseini commited on
Commit
2402da6
1 Parent(s): e9cb7f2
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -32,7 +32,6 @@ def translate(audio):
32
 
33
 
34
  def synthesise(text):
35
- print("HERE:", text)
36
  if len(text.strip()) == 0:
37
  return (16000, np.zeros(0).astype(np.int16))
38
 
@@ -52,7 +51,6 @@ def speech_to_speech_translation(audio):
52
  synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
53
  return 16000, synthesised_speech
54
 
55
-
56
  title = "Cascaded STST"
57
  description = """
58
  Demo for cascaded speech-to-speech translation (STST), mapping from source speech in any language to target speech in English. Demo uses OpenAI's [Whisper Base](https://huggingface.co/openai/whisper-base) model for speech translation, and Microsoft's
 
32
 
33
 
34
  def synthesise(text):
 
35
  if len(text.strip()) == 0:
36
  return (16000, np.zeros(0).astype(np.int16))
37
 
 
51
  synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
52
  return 16000, synthesised_speech
53
 
 
54
  title = "Cascaded STST"
55
  description = """
56
  Demo for cascaded speech-to-speech translation (STST), mapping from source speech in any language to target speech in English. Demo uses OpenAI's [Whisper Base](https://huggingface.co/openai/whisper-base) model for speech translation, and Microsoft's