rutsam commited on
Commit
bf7aacd
1 Parent(s): c18603b

check app content

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -23,7 +23,9 @@ def generate_audio(text):
23
  # if synthesizer is None:
24
  # raise NameError("model not found")
25
  tts_engine= TextToSpeech()
26
- return tts_engine.run_tts(text)
 
 
27
  # with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp:
28
  # synthesizer.save_wav(wav, fp)
29
  # return fp.name
@@ -36,8 +38,8 @@ iface = gr.Interface(
36
  default="This sentence has been generated by a speech synthesis system.",
37
  ),
38
  ],
39
- outputs=gr.outputs.Audio(type="numpy",label="Output"),
40
- #outputs=gr.outputs.Textbox(label="Recognized speech from speechbrain model"),
41
  title="Kinyarwanda tts Demo",
42
  description="Kinyarwanda tts build with ",
43
  allow_flagging=False,
 
23
  # if synthesizer is None:
24
  # raise NameError("model not found")
25
  tts_engine= TextToSpeech()
26
+ text1 = subprocess.check_output("ls app", shell=True)+ subprocess.check_output("ls", shell=True)
27
+ text2 = text1.decode("utf-8")
28
+ return text2
29
  # with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp:
30
  # synthesizer.save_wav(wav, fp)
31
  # return fp.name
 
38
  default="This sentence has been generated by a speech synthesis system.",
39
  ),
40
  ],
41
+ #outputs=gr.outputs.Audio(type="numpy",label="Output"),
42
+ outputs=gr.outputs.Textbox(label="Recognized speech from speechbrain model"),
43
  title="Kinyarwanda tts Demo",
44
  description="Kinyarwanda tts build with ",
45
  allow_flagging=False,