Skip to content

Commit ffd6c3c

Browse files
committed
Exceotion handled by me
1 parent 03280c0 commit ffd6c3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

voice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# Define the text you want to convert to speech
66
text = "Hello! This is a sample text to convert to speech."
77

8+
# Exception Handaled
89
try:
910
# Create a gTTS object
1011
tts = gTTS(text=text, lang="en")

0 commit comments

Comments
 (0)