Read a text file and convert it to speech in python
You need to install pypiwin32 for speech convertion
pip install pypiwin32
You need to pass the file name as the first argument. This could also be the path to the file name along the filename itself. You can also use the provided sample.txt file as a sample. If the sample file is in the same path as the text_to_speech.py file you can run it like this:
python text_to_speech.py sample.txt