fix: make it read last poem

This commit is contained in:
wassname
2019-01-12 12:54:19 +08:00
parent eeff892367
commit a8f2de9a35
+4 -1
View File
@@ -176,7 +176,10 @@ def generate_poem():
speak('DEBUG: your rhymes are '+ ' '.join(rhymes))
# FEED POEM TO TRANSCRIBER
speak(text=text_generated, cache_file="outputs/BitLit_last_poem.mp3")
cache_file = "outputs/BitLit_last_poem.mp3"
tts = gTTS(text=text, lang=lang)
tts.save(cache_file)
play_mp3(cache_file)
if random.random()>0.90:
speak(text="THANK YOU!")