How to install the win32com module (to make the computer speak)

Installation of win32module

Python speaks
text to speech API fromg google with python

You need to pip install pypiwin32 from the command line. If you have different version you should use py -3.7 -m pip install pypiwin32 to install it (or a different version number). In the following video there are the explanations.

The code to make the computer speak with win32com (on Windows)

# computer windows speaks

from win32com.client import Dispatch

speak = Dispatch("SAPI.SpVoice")

speak.Speak("Ciao")

 

Published by pythonprogramming

Started with basic on the spectrum, loved javascript in the 90ies and python in the 2000, now I am back with python, still making some javascript stuff when needed.