/py_textfile_to_speech

Read a text file and convert it to speech

Primary LanguagePython

TextFile to Speech in Python

Read a text file and convert it to speech in python

Installation

You need to install pypiwin32 for speech convertion

pip install pypiwin32

Execute from command line

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