bisoye commited on
Commit
d2c3df5
1 Parent(s): 4f48d78

Update helper_fns.py

Browse files
Files changed (1) hide show
  1. helper_fns.py +9 -1
helper_fns.py CHANGED
@@ -50,4 +50,12 @@ def text_to_audio(text, model_name="facebook/fastspeech2-en-ljspeech"):
50
  with open(audio_path, "wb") as file:
51
  file.write(audio["wav"])
52
 
53
- return audio_path
 
 
 
 
 
 
 
 
 
50
  with open(audio_path, "wb") as file:
51
  file.write(audio["wav"])
52
 
53
+ return audio_path
54
+
55
+
56
+ def generate_output(method, file):
57
+
58
+ summary_text = summarize_file(method, file)
59
+ audio_summary = text_to_speech(summary_text)
60
+
61
+ return summary_text, audio_summary