diff --git a/.gitignore b/.gitignore index 84ac774..66e9dd8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ tts/ build/ dist/ settings.json +TextToSpeech.spec diff --git a/Text To Speech.py b/TextToSpeech.py similarity index 96% rename from Text To Speech.py rename to TextToSpeech.py index cfbbb5e..71aaf87 100644 --- a/Text To Speech.py +++ b/TextToSpeech.py @@ -179,9 +179,13 @@ def getKey(): if ("list" == cmd.replace("play ", "")): print("\nCurrently available special sound effects: ") - - for specialFile in os.listdir("special"): - print("- " + specialFile) + + if (os.path.isdir("special")): + for specialFile in os.listdir("special"): + print("- " + specialFile) + else: + print("No special sound effects available") + os.mkdir("special") elif (os.path.isfile(playFile) == True): playSound(str(playFile), 1.0) print("Playing file: " + playFile) diff --git a/special/example.wav b/special/example.wav deleted file mode 100644 index bf0442e..0000000 Binary files a/special/example.wav and /dev/null differ