akshatdalton / Audrch

Enter an audio and search which song is it using Jina AI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Audrch

Audrch (Audio + Search) - Using this project one can enter an audio and search which song it is! The project is made using Jina AI which is a neural search framework. Check the original issue here.

Idea:

Create a search hinge for songs using Jina

What it does?

Upload an audio and check which song is it!

Tech stack used?

Made with ❤️

How to use?

Note: You must have python >= 3.7.

Create a virtual environment

python -m venv audrch-venv

Activate the virtual environment

source audrch-venv/bin/activate

Download and unzip genres_v2.csv.zip from Kaggle dataset of songs in Spotify and put the file in the same directory as that of backend/app.py.

Follow instructions from here to obtain SPOTIPY_CLIENT_ID and SPOTIPY_CLIENT_SECRET.

Set the environment variables (can follow this guide also):

export SPOTIPY_CLIENT_ID='your-spotify-client-id'
export SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'
  • Run the backend:
python app.py

You can tweak TOTAL_LIMIT in app.py:generate_data to control the number of training samples.

  • In another terminal, run streamlit:
streamlit run client/app.py

Now, head over to http://localhost:8501 and you can query songs/audio of your choice!

About

Enter an audio and search which song is it using Jina AI.

License:MIT License


Languages

Language:Python 100.0%