From 7822dfa4b55016fab1bf46ef846402a82d62ff98 Mon Sep 17 00:00:00 2001
From: Adam Blank <blank@caltech.edu>
Date: Tue, 24 Sep 2024 22:40:02 +0000
Subject: [PATCH] Add new file

---
 00/util.py | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 00/util.py

diff --git a/00/util.py b/00/util.py
new file mode 100644
index 0000000..8350474
--- /dev/null
+++ b/00/util.py
@@ -0,0 +1,7 @@
+from gtts import gTTS
+import playsound
+
+def play(script):
+    tts = gTTS(text=script, lang='en')
+    tts.save("sound.mp3")
+    playsound.playsound("sound.mp3")
-- 
GitLab