Convert Text to Speech in Python using win32com.client Last Updated : 29 Sep, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report There are several APIs available to convert text to speech in python. One of such APIs available in the python library commonly known as win32com library. It provides a bunch of methods to get excited about and one of them is the Dispatch method of the library. Dispatch method when passed with the argument of SAPI.SpVoice It interacts with the Microsoft Speech SDK to speak what you type in from the keyboard. Examples: Input : Hello World Output : Input : 121 Output : Installation To install the win32com.client module , open terminal and write pip install pypiwin32 This works on Windows platform. Now we are all set to write a sample program that converts text to speech. Python # Python program to convert # text to speech # import the required module from text to speech conversion import win32com.client # Calling the Dispatch method of the module which # interact with Microsoft Speech SDK to speak # the given input from the keyboard speaker = win32com.client.Dispatch("SAPI.SpVoice") while 1: print("Enter the word you want to speak it out by computer") s = input() speaker.Speak(s) # To stop the program press # CTRL + Z Input: Welcome to geeks for geeks Output: Comment More infoAdvertise with us Next Article Text to speech GUI convertor using Tkinter in Python S Subhajit Saha Improve Article Tags : Misc Python python-utility Practice Tags : Miscpython Similar Reads Convert PDF File Text to Audio Speech using Python Let us see how to read a PDF that is converting a textual PDF file into audio.Packages Used:pyttsx3: It is a Python library for Text to Speech. It has many functions which will help the machine to communicate with us. It will help the machine to speak to usPyPDF2: It will help to the text from the P 2 min read Convert Text to Speech in Python There are several APIs available to convert text to speech in Python. One of such APIs is the Google Text to Speech API commonly known as the gTTS API. gTTS is a very easy to use tool which converts the text entered, into audio which can be saved as a mp3 file. The gTTS API supports several language 4 min read Text to speech GUI convertor using Tkinter in Python Prerequisite: Introduction to Tkinter Tkinter is the standard GUI library for Python. Python when combined with tkinter provides a fast and easy way to create GUI applications.By this library we can make a compelling choice for building GUI applications in Python, especially for applications where a 3 min read Extract speech text from video in Python Nowadays, videos have become an integral part of our lives. Videos educate us and provide the necessary information. In this article, we will learn how to extract text speech from video using Python. Extract Speech Text from the Video To extract speech text from video in Python, we require the follo 3 min read Text to Speech by using pyttsx3 - Python Converting text to speech can add a new level of interactivity to our Python applications. Whether we want to create a virtual assistant or simply make our program more engaging, pyttsx3 is a library used for converting text into speech. This offline tool offers flexibility with male and female voic 3 min read Convert mp3 to wav using Python In this article, we are going to discuss various methods to convert mp3 to wave file format using Python. Method 1: First We Need To Install ffmpeg. It Is A Free Open Source Software Project Consist of a Large Suite Of Libraries And Programs For Handling Video, Audio, And Other Multimedia Files. sud 2 min read Like