GithubHelp home page GithubHelp logo

vensder / language-tutor-bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 321 KB

Language Tutor Telegram-Bot can help you to enrich your vocabulary and to learn phrases and pronunciation for any language.

License: The Unlicense

Python 90.95% Shell 5.49% Dockerfile 3.56%
english-learning language-learning telegram-bot python

language-tutor-bot's Introduction

Telegram Language Tutor Bot

This is a simple Language Tutor Bot which can help you to enrich your vocabulary and can help to learn phrases and pronunciation.

Actually you can learn any language and can have any native language - the bot is multilingual.

It is pretty easy to use it: just send the word or sentence to the Telegram channel, where is your bot added. And bot will translate it and will add the audio file to the telegram channel.

The audio file has the structure:

<the phrase in studying language>, <the phrase in your native language>, <the slow phrase in studying language>

If you send one word only and if the translation module returns the definitions and/or examples of the word, this text will be added to the audio file as well.

Run The Bot

Clone the repo:

git clone https://github.com/vensder/language-tutor-bot.git

Add the Python 3 virtual environment and install the modules:

cd language-tutor-bot
virtualenv -p python3 env
source ./env/bin/activate
pip install -r requirements.txt

To run the bot just rename example.config.py file to config.py and replace the fake Telegram Bot API token with the real one.

mv example.config.py config.py
./main.py

How to create the bot and how to obtain the token, check out here: https://core.telegram.org/bots/api

Also put the language codes into the config, corresponding to your native language and learning language. You can check them out here: https://cloud.google.com/translate/docs/languages

The benefit of having the audio files in the telegram group is that you can listen to all audio on your mobile device even if you are walking. The telegram media player will play all of them in the group.

Once you remember them, you can delete them and add new ones.

language-tutor-bot's People

Contributors

vensder avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

liberation-team

language-tutor-bot's Issues

I get error when run main.py

When rung ./main.py I get error. Could you help me!
Traceback (most recent call last):
File "./main.py", line 137, in
updater = Updater(telegram_token, use_context=True)
File "/home/ubuntu/language-tutor-bot/env/lib/python3.8/site-packages/telegram/ext/updater.py", line 237, in init
raise ValueError('token or bot must be passed')
ValueError: token or bot must be passed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.