GithubHelp home page GithubHelp logo

gabrielrf / videocaptionsbot Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 59 KB

Telegram Bot @VideoCaptionsBot

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

License: GNU General Public License v3.0

Python 100.00%
ffmpeg openai-whisper pytelegrambotapi python telegram telegram-bot

videocaptionsbot's Introduction

VideoCaptionsBot

Em beta

Contribuições

Toda contribuição é bem vinda!

  • Verifique as issues abertas e, se possível, sugira soluções;
  • Abra novas issues;
  • Envie um PR (preferencialmente vinculado a uma issue);
  • Fale comigo no Telegram (@GabrielRF).

Funcionamento

Este bot possui dois processos em execução em paralelo. São eles:

VideoCaptionsBot.py

O arquivo videocaptionsbot.py faz o polling das atualizações. Assim que recebe um arquivo, um vídeo ou uma "mensagem de bolinha", a mensagem é enviada ao RabbitMQ.

Funções

  • add_to_line: Adiciona a mensagem recebida à fila;
  • start: Responde o comando /start;
  • get_video: Responde ao receber um vídeo, um arquivo ou uma "mensagem de bolinha".

Consumeline.py

Ao perceber alguma mensagem na fila do RabbitMQ, este arquivo inicia o processamento da mensagem.

Funções

  • subs_data: Verifica os valores de tamanho da legenda e altura em relação ao vídeo;
  • add_subtitles: Adiciona as legendas com base no arquivo srt;
  • remove_files: Remove os arquivos do sistema;
  • download_file: Baixa o arquivo do servidor do Telegram;
  • create_subs: Cria o arquivo .srt com base na transcrição;
  • voice_to_text: Faz a transcrição do vídeo recebido;
  • send_file: Envia o arquivo com legendas ao usuário;
  • consume_line: Verifica se há arquivos na fila e dá início ao processamento da legenda.

videocaptionsbot's People

Contributors

andreluizpdev avatar gabrielrf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

andreluizpdev

videocaptionsbot's Issues

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.