8000 GitHub - OMerkel/language_training: Some language training stuff
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

OMerkel/language_training

Repository files navigation

Language Training

Pylint uv Python Version License: MIT

Some tools to support you on your language training stuff.

Tool Overview

  • 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.

Setup

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

Run some Tools

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

Current Language Support

Use the mentioned Country Codes to refer to your intended language selection.

Flag Country Name Country Code
German Flag Germany de-DE
US Flag United States en-US
French Flag France fr-FR
Spanish Flag Spain es-ES
Italian Flag Italy it-IT
Portuguese Flag Portugal pt-PT
Russian Flag Russia ru-RU
Japanese Flag Japan ja-JP
Chinese Flag China zh-CN
Korean Flag South Korea ko-KR
Dutch Flag Netherlands nl-NL
Swedish Flag Sweden sv-SE
Turkish Flag Turkey tr-TR
Polish Flag Poland pl-PL
Serbian Flag Serbia sr-RS
Romanian Flag Romania ro-RO

About

Some language training stuff

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0