Coder Social home page Coder Social logo

kevinppaulo / babelgram-bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 300 KB

A Telegram bot that accepts an Instagram username, and translates and synthesizes everything that is said in the user's IG Stories to your language.

JavaScript 87.08% Shell 1.03% HTML 11.89%
bot telegram translation languages machine-learning watson ibm-watson watson-text-to-speech watson-speech-to-text instagram

babelgram-bot's Introduction

babelgram-bot ๐Ÿค–

image

Babelgram uses voice recognition and speech synthesis to translate Instagram's stories to your desired language using IBM Watson's Speech to Text, Translation and Text to Speech services.

How to run this project

  1. Clone this project and install all dependencies using yarn install or npm -i
  2. Create your Telegram bot using botfather.
  3. Have a redis server running. See instructions for installing here
  4. Have an accessible public domain to host your project. I recommend ngrok for local development and heroku for deploying.
  5. You'll need an IBM Cloud account to use the speech to text, text to speech and language translator services. Don't worry, they have a free plan.
  6. Grab your key and url from each of your services and put them in your .env file. An example .env is provided.
  7. Speaking of .env, configure your bot token, public url, instagram username and password on your .env file.
  8. Make your bot's webhook point to your domain. See setWebhook for more info.

image

commands

Babelgram listens for the following commands:

  1. /start is sent every time a user starts a conversation with your bot. Doesn't really do anything;
  2. /setvideolanguage sets the language of the video on instagram;
  3. /setmylanguage sets the language that the video will be translated to;
  4. /setvoice gives you a choice between male and female voices;

Notes

currently the bot expects you to set the webhook in the following format: https://your-domain.com/{yourSecretToken}/update/ where {yourSecretToken} is the WEBHOOK_SECRET configured in the .env file.

babelgram-bot's People

Contributors

kevinppaulo avatar

Watchers

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