Some tools to support you on your language training stuff.
- read_out_loud.py This script reads out loud a language training text from a data/*.toml in target language using the gTTS (Google Text-to-Speech) library.
Clone the repository locally and have Python installed.
- Create a Python virtual environment.
python -m venv .venv
- Activate the Python virtual environment
- Update pip
- Install packages from requirements.txt
- Check uv version
- Sync and resolve package dependencies
.venv\Scripts\activate
python -m pip install --upgrade pip
pip install -r requirements.txt
uv --version
uv sync
Now you can run any given script from this repository, e.g. ...
- run read_out_loud.py and show the usage information
uv run read_out_loud.py --help
- run read_out_loud.py using default parameters
uv run read_out_loud.py
- run read_out_loud.py showing text in Italian waiting for a keypress then showing the Japanese version and read it out loud.
uv run .\read_out_loud.py --source_lang it-IT --target_lang ja-JP --toml_file .\data\greetings.toml
Use the mentioned Country Codes to refer to your intended language selection.