GithubHelp home page GithubHelp logo

dodekaphilist / transcriberbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from charslab/transcriberbot

0.0 0.0 0.0 136 KB

TranscriberBot for Telegram

Home Page: https://t.me/transcriber_bot

License: GNU General Public License v3.0

Python 98.03% Dockerfile 1.48% Shell 0.49%

transcriberbot's Introduction

Transcriber Bot

Generic badge Generic badge

Quick Start

  1. Create your own Telegram bot from @BotFather and take the bot token

  2. Edit the file config/telegram.json

    { "username": "BOT USERNAME", "token": "BOT TOKEN", "admins": [ "YOUR TELEGRAM ID" ] }

  3. Create your own Wit token on Wit website

  4. Edit the file config/wit.json (for example with italian token)

    { "it-IT": "WIT TOKEN FOR Italian" }

    You can repeat the points 3 and 4 for support multiple languages.

    You can test if your token is working by running:

    $ python src/audiotools/speech.py wit_api_key some_file.mp3 transcription.txt

  5. Create your own Yandex translate token on Yandex website

  6. Edit the file config/yandex.json

    { "translate_key": "YOUR YANDEX TOKEN" }

Installation with virtualenv

  1. Install virtualenv and setuptools package

    $ python3 -m pip install --upgrade pip $ pip3 install virtualenv setuptools

  2. Make a note of the full file path to the custom version of Python you just installed

    $ which python3

  3. Create the virtual environment while you specify the version of Python you wish to use

    $ virtualenv -p /usr/bin/python3 venv

  4. Activate the new virtual environment

    $ source venv/bin/activate

  5. Install the requirement packages

    (venv) $ pip3 install -r requirements.txt

  6. Run the bot

    (venv) $ python3 src/main.py

Installation with Docker

You can install easily with Docker.

  1. Run the script dockerBuild.sh to generate the docker image from the Dockerfile.

  2. Run the script dockerRun.sh to create and start the docker container.

    In the run script, the docker directories config, data and values are binding with the repository directory. If you want to edit the files in the configuration directories you can do this simply by stopping the container. As soon as you finish editing the files, just restart the container to make them active.

TODO

  • Voice Messages
  • Audio Files
  • Video notes
  • Pictures
  • Multithreading
  • Stop callback
  • Stats
  • Admin commands only in groups
  • Antiflood
  • Translations
  • Voice ask
  • Channels support

transcriberbot's People

Contributors

alexdicy avatar carloalbertobarbano avatar davte avatar dodekaphilist avatar maanuelmm avatar stefanodelbosco avatar thigschuch avatar turicas avatar vetu11 avatar

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.