diff --git a/Text_Speech.py b/Text_Speech.py new file mode 100644 index 0000000..7382fe8 --- /dev/null +++ b/Text_Speech.py @@ -0,0 +1,28 @@ +# Import the required module for text +# to speech conversion +from gtts import gTTS +from playsound import playsound + +# This module is imported so that we can +# play the converted audio +import os + +# The text that you want to convert to audio +mytext = 'Welcome to binarynote.com and this is really amazing my dear!' + +# Language in which you want to convert +language = 'en' + +# Passing the text and language to the engine, +# here we have marked slow=False. Which tells +# the module that the converted audio should +# have a high speed +myobj = gTTS(text=mytext, lang=language, slow=False) + +# Saving the converted audio in a mp3 file named +# welcome +myobj.save("welcome.mp3") + +# Playing the converted file +#os.system("mpg321 welcome.mp3") +playsound("welcome.mp3") \ No newline at end of file diff --git a/dob.xls b/dob.xls index bcc205b..50cc9ff 100644 Binary files a/dob.xls and b/dob.xls differ diff --git a/mergesort.py b/mergesort.py new file mode 100644 index 0000000..86b2ba2 --- /dev/null +++ b/mergesort.py @@ -0,0 +1,20 @@ +x = [10,20,30,40,50] +y = [14,20,25,30] +z = [] +i=j=k=0 +while(i<5 and j<4): + if(x[i]