Skip to content

Commit 29e5016

Browse files
authored
Update voice_based_email_for_blind.py
1 parent 6e85abe commit 29e5016

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

voice_based_email_for_blind.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#choices
3535
print ("1. composed a mail.")
3636
tts = gTTS(text="option 1. composed a mail.", lang='en')
37-
ttsname=("path/hello.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
37+
ttsname=("hello.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
3838
tts.save(ttsname)
3939

4040
music = pyglet.media.load(ttsname, streaming = False)
@@ -56,7 +56,7 @@
5656

5757
#this is for input choices
5858
tts = gTTS(text="Your choice ", lang='en')
59-
ttsname=("path/hello.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
59+
ttsname=("hello.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
6060
tts.save(ttsname)
6161

6262
music = pyglet.media.load(ttsname, streaming = False)
@@ -105,7 +105,7 @@
105105
mail.sendmail('emailID','victimID',msg) #send part
106106
print ("Congrates! Your mail has send. ")
107107
tts = gTTS(text="Congrates! Your mail has send. ", lang='en')
108-
ttsname=("path/send.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
108+
ttsname=("send.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
109109
tts.save(ttsname)
110110
music = pyglet.media.load(ttsname, streaming = False)
111111
music.play()
@@ -121,7 +121,7 @@
121121
stat, total = mail.select('Inbox') #total number of mails in inbox
122122
print ("Number of mails in your inbox :"+str(total))
123123
tts = gTTS(text="Total mails are :"+str(total), lang='en') #voice out
124-
ttsname=("path/total.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
124+
ttsname=("total.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
125125
tts.save(ttsname)
126126
music = pyglet.media.load(ttsname, streaming = False)
127127
music.play()
@@ -132,7 +132,7 @@
132132
unseen = mail.search(None, 'UnSeen') # unseen count
133133
print ("Number of UnSeen mails :"+str(unseen))
134134
tts = gTTS(text="Your Unseen mail :"+str(unseen), lang='en')
135-
ttsname=("path/unseen.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
135+
ttsname=("unseen.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
136136
tts.save(ttsname)
137137
music = pyglet.media.load(ttsname, streaming = False)
138138
music.play()
@@ -150,7 +150,7 @@
150150
print ("From: "+email_message['From'])
151151
print ("Subject: "+str(email_message['Subject']))
152152
tts = gTTS(text="From: "+email_message['From']+" And Your subject: "+str(email_message['Subject']), lang='en')
153-
ttsname=("path/mail.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
153+
ttsname=("mail.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
154154
tts.save(ttsname)
155155
music = pyglet.media.load(ttsname, streaming = False)
156156
music.play()
@@ -165,7 +165,7 @@
165165
txt = soup.get_text()
166166
print ("Body :"+txt)
167167
tts = gTTS(text="Body: "+txt, lang='en')
168-
ttsname=("path/body.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
168+
ttsname=("body.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
169169
tts.save(ttsname)
170170
music = pyglet.media.load(ttsname, streaming = False)
171171
music.play()

0 commit comments

Comments
 (0)