Skip to content

timkrysta/just-learn-numbers

Repository files navigation

Foreign Language Number Trainer

This terminal app is designed to help you practice numbers in foreign languages. It uses Google Text To Speech API.

Below demos are just GIFs without sound!

Listening Module

It let's hear a number from a range and type what you heard to check if you understood correctly.

Listening module

Speaking Module

It gives a random number from a range and you have to say it out loud on your own. Type c to check hear the correct pronunciation.

Speaking module

Installation

To install the dependencies, run:

pip install -r requirements.txt

Usage

To start the program, run:

python3 just-learn-numbers.py

The program will prompt you to enter a range of numbers to practice. You can enter a specific range (e.g. 1-10), or enter "all" to practice all numbers up to 1 billion.

The program will start presenting you with random numbers in the range you specified. You'll be prompted to enter the correct number in the target language. If you get the answer correct, the program will play a sound and show the next number. If you get the answer wrong, the correct answer will be displayed and you'll be given another chance to answer.

Credits

This program uses the following libraries:

  • PyInquirer
  • gTTS
  • pydub

TODO

  • get _lang variable from user input instead of being hardcoded
  • add support for versions newer than python 3.9

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

TUI app to practice numbers in foreign languages

Topics

Resources

Stars

Watchers

Forks

Languages