This Python program performs a spelling test. The words to be spelled are "spoken" and have to be typed in correctly in lower-case, with capitals and other punctuation only as required.
There is no binary installer for this (very!) simple program. You need to download the necessary files from GitHub. Since the easiest way to do this is with Git itself, installing the Git package is very useful.
The program was written in Python v3 and is not compatible with Python v2.
The following python libraries must be installed:
If in doubt, these can be installed with pip, for example:
python3 -m pip install gTTS
A requirements.txt file is provided with this project, allowing you to install the latest versions of these libraries with a single command:
python3 -m pip install -r requirements.txt
At the time of writing there seems to be a problem with the installation of the gTTS library, acknowledged in gTTS issue 158 on GitHub. The work-around suggested in that thread worked for me, although I had to update the path to reflect my version of Python 3.5:
cd ~/.local/lib/python3.5/site-packages/
mv UNKNOWN-2.0.3.dist-info/ gTTS-2.0.3.dist-info/
pip install --user --force-reinstall --ignore-installed --no-binary :all: gTTS
This program is provided as a GitHub repo. It is expected that you will be able to download (clone) the necessary files using git. Use the instructions below to perform the necessary steps.
If you don't want to use git you must download the following files from this site and put them in a folder named, e.g. "spelling_test":
- dictionary.json
- main.py
The following commands will create a folder called Git in your home directory on Linux when run from a terminal prompt:
cd ~
mkdir Git
cd Git
git clone https://github.com/cjj1977/spelling_test.git
python3 .\profile.py