Skip to content

vakhamzin/shazagram

Repository files navigation

Shazagram

Telegram bot for Shazam

DEMO: https://t.me/shazagram_bot

Screenshot

Features:

  • Recognize music from an audio/video file (.mp3, .mp4, .webm).
  • Recognize music from YouTube video (you can send a link with current time parameter as well).

Requirements (Ubuntu 20.04)

FFmpeg

sudo apt update
sudo apt install ffmpeg -y

SongRec

sudo apt-add-repository ppa:marin-m/songrec -y -u
sudo apt install songrec -y
sudo apt install build-essential libasound2-dev libgtk-3-dev libssl-dev -y

It can be useful to install ngrok as well

Using

Create .env file in project's root directory and populate it

API_URL=http://localhost:5000
PORT=5000
TELEGRAM_API_TOKEN=...

Then, run

yarn run build && yarn run start

or

yarn run start:dev

Licence

The Unlicense