Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.05 KB

README.md

File metadata and controls

22 lines (17 loc) · 1.05 KB

Minimal Shazam Audio Identification on MongoDB

This is a minimal implementation of Shazam audio identification algorithm1 using MongoDB as the storage engine. The implementation is not fully optimised and is only for educational purposes.

Requirements

  • Python 3.10+
  • MongoDB 7.0+

Quick Start

  1. Clone the repository.
  2. Install the required packages.
pip install -r requirements.txt
  1. Install MongoDB and start the server at localhost.
  2. Run the following command to benchmark the implementation. --port is optional and should equal to the port number of the MongoDB server. --map specifies the way to build peak pairs in the constellation maps. wang is the default value and is based on the paper. delaunay uses Delaunay triangulation to extract the pairs.
python main.py /path/to/fingerprinted/audio/files /path/to/query/audio/files --port 28000 --map wang

Footnotes

  1. An Industrial-Strength Audio Search Algorithm