minor update
This commit is contained in:
parent
66b418ece5
commit
57a11419e3
@ -1,2 +1,3 @@
|
|||||||
# python-project
|
# python-project
|
||||||
Just some things I made for fun.
|
Just some things I made for fun.
|
||||||
|
Ok, I'm making these for learning python don't @ me
|
||||||
|
@ -4,12 +4,15 @@ debug = 1
|
|||||||
|
|
||||||
# Import the libraries we will use
|
# Import the libraries we will use
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
import pyttsx
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import random
|
import random
|
||||||
import platform
|
import platform
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
# init tts
|
||||||
|
engine = pyttsx.init()
|
||||||
# check to see if termcolor is installed, we need it for color to work
|
# check to see if termcolor is installed, we need it for color to work
|
||||||
try:
|
try:
|
||||||
from termcolor import colored
|
from termcolor import colored
|
||||||
@ -133,6 +136,9 @@ generatedStory = generatedStory.join(storyContentList)
|
|||||||
#generatedStoryColored = generatedStoryColored.join(storyContentListColored)
|
#generatedStoryColored = generatedStoryColored.join(storyContentListColored)
|
||||||
#print(generatedStoryColored)
|
#print(generatedStoryColored)
|
||||||
print(generatedStory)
|
print(generatedStory)
|
||||||
|
# say the tts
|
||||||
|
engine.say('generatedStory')
|
||||||
|
engine.run()
|
||||||
#print(exec(generatedStoryColored))
|
#print(exec(generatedStoryColored))
|
||||||
#exit()
|
#exit()
|
||||||
#Alright! We're done! Let's save the story to a file
|
#Alright! We're done! Let's save the story to a file
|
||||||
|
Loading…
Reference in New Issue
Block a user