This LINE and Telegram Chat bot accepts a YouTube link, converts the video to to MP3, upload the converted MP3 to Amazon S3 and sends back the download link.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs/img
src
.gitignore
.travis.yml
README.md
pom.xml

README.md

YouTube to MP3 Chat Bot

Build Status

This LINE and Telegram Chat bot accepts a YouTube link, converts the video to to MP3, upload the converted MP3 to Amazon S3 and sends back the download link.

The project is developed using Java and Spring Boot. youtube-dl is used for video download and conversion.

Currently support these platforms:

  • LINE
  • Telegram

Screenshot

LINE Telegram
LINE Telegram

Try It Out IRL

Telegram

https://t.me/YouTube_MP3_Converter_Bot

LINE

Add by QR code

LINE

Getting started

One-off Setup

  1. Sign up for LINE bot account
  2. Create Telegram Bot using BotFather
  3. Create S3 bucket to be used to MP3 file upload

Running Locally

  1. Complete steps in One-off Setup
  2. Install youtube-dl and ffmpeg binary on your machine.
  3. Clone or fork this repo
  4. Import as Maven project
  5. Edit S3, LINE and Telegram config in application.yaml

Running on Heroku

  1. Complete steps in One-off Setup

  2. Clone or fork this repo

  3. Deploy on Heroku with this buildpack containing ffmpeg and youtube-dl binaries.

    heroku create
    heroku buildpacks:add https://github.com/veeraya/heroku-buildpack-ffmpeg-latest.git
    git push heroku master
    
  4. Set up the following config variables on Heroku.

    • AWS_ACCESS_KEY_ID
    • AWS_SECRET_ACCESS_KEY
    • LINE_BOT_CHANNEL_SECRET
    • LINE_BOT_CHANNEL_TOKEN
    • TELEGRAM_BOTTOKEN
    • TELEGRAM_BOTUSERNAME