Posts

Showing posts from April, 2023

Text_To_Speech_Using_Python

Image
 Hello dudes, Today we gonna see about how to generate audio from the text input using python. Language: Python IDE : Pycharm Step 1 : The API (Application Programming Interface) we will be using here is gTTS (google Text To Speech), so our first step is to install this API by running the following code pip install gTTS    Step 2 : Type the following code and execute : Using this code we have freedom to  : -> Change Text Input -> Change Language  -> Change Pace [Fast or Slow] -> Save the generated audio - > Play the generated audio Note : texts after "#"  symbol are comments ,otherwise called as non-executable statements which are given here only for the purpose of explanation.   Step 3:  Yeah its time to run it!   The generated audio will be saved in the location of the code. After saving, media player (at first time you are required to choose your desired media player) will be opened automatically.      There you go ! Here is the output.     Tip : You ma

Whatsapp Automation Using Python

Image
Hii makkale! Today we gonna see about a simple python code with which automatic whatsapp message can be sent to any whatsapp number at the scheduled time!. Ok doods let's dive into the project!  Step 1: To carry out this task a python library named pywhatkit is used. To install this library in your machine jus type in the following code in your code editor pip install pywhatkit.  Note : Make sure to install this library otherwise the following code doesn't work.  Step 2 : Type the following code in your code editor..  Line 1 : import pywhatkit as pwt.  This lines tells that pywhatkit can be called as pwt in the upcoming lines of code. It's not mandatory to use pwt, we can use any word instead of pwt.  Eg: import pywhatkit as sethapayale , too works😜. It's a kinda chella peyar (nickname) . But make sure this chella peyar  (nickname ) to be the same throughout the project.  Line 2 : pwt.sendwhatmsg ("phone number with code'', '' message t

Kola pulli pattern in python

Image
 Hello Makkale! Inaiku nama pakaporadhu " How to create digital pulli for digital kolam using Python " in other words " How to create pyramid pattern using python "  Language : Python    IDE : Pycharm  Mangalagarama Pycharm la start panrom Lets dive into the code In the above code, we have initialized the n variable to enter the number of rows for the pattern. We entered n = 5, the range of outer for loop will be 0 to 4. The iteration of the inner for loop depends on the outer loop. The inner loop is responsible to print the number of columns of kolam. In the first iteration, the value of i is 0, and it increased by 1, so it becomes 0+1, now inner loop iterated first time and print one kola pulli (*). In the second iteration, the value of i is 1 and it increased by 1, so it becomes 1+1, now inner loop iterated two times and print two kola pulli (*). The end argument prevents to jump into another line. It will printer the star until the loop is valid. The last p