From b0c2cdcd6da6441c51ef8e7df0a8c0e869dff3b7 Mon Sep 17 00:00:00 2001 From: codewithSUKU <72142656+codewithSUKU@users.noreply.github.com> Date: Sat, 3 Oct 2020 09:21:34 +0530 Subject: [PATCH] Add text to speech convert new code --- s.txt | 13 +++++++++++++ t.py | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 s.txt create mode 100644 t.py diff --git a/s.txt b/s.txt new file mode 100644 index 0000000..b766724 --- /dev/null +++ b/s.txt @@ -0,0 +1,13 @@ +As we all know, we have gathered to celebrate Teacher's Day online. Let me take this opportunity to thank all our teachers, who have been working very hard to teach us online. Taking education to the next level, this year may have given us tough times, but our teachers have surely been a ray of hope. + +From guiding us to motivating us, this year our respect for teachers worldwide has grown immensely. We know it has been challenging for each one of us, but teachers have been our lockdown mentors. They have supported us throughout and helped us cope with online classes. + +In these tough times, I would like to thank all the teachers . Thank you for guiding us, inspiring us and making us what we are today! +"Colleg Name" +again thanks to all respected teachers .... +2017 to 2021 batch +happy teachers day + + + + diff --git a/t.py b/t.py new file mode 100644 index 0000000..fd9ace7 --- /dev/null +++ b/t.py @@ -0,0 +1,12 @@ +from win32com.client import Dispatch + + + +def speak (str): + speak = Dispatch("SAPI.SpVoice") + speak.Speak(str) + +if __name__ == "__main__": + with open ("s.txt",encoding="utf8") as f: + for item in f.readlines(): + speak(item) \ No newline at end of file