Leo Liu commited on
Commit
1d7c36e
·
verified ·
1 Parent(s): 8d6fdbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def text2story(text):
26
 
27
  # text2audio
28
  def text2audio(story_text):
29
- tts = gTTS(text = story_text, lang='en')
30
  audio_bytes = io.BytesIO()
31
  tts.write_to_fp(audio_bytes)
32
  audio_bytes.seek(0)
 
26
 
27
  # text2audio
28
  def text2audio(story_text):
29
+ tts = gTTS(text = story_text, lang='en') # gtts is for a female voice which is more suitable for reading the story for children
30
  audio_bytes = io.BytesIO()
31
  tts.write_to_fp(audio_bytes)
32
  audio_bytes.seek(0)