

GitHub - sfluor/musig: A shazam like tool to store musics fingerprints and retri...
source link: https://github.com/sfluor/musig
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

musig 
A shazam-like tool that allows you to compute song's fingerprints and reverse lookup song names.
It's more or less an implementation of the shazam paper as described in this awesome article
Installation
You will need to have go on your computer (version > 1.11 to be able to use go modules).
You will also need to have portaudio installed (brew install portaudio
on macOS, apt install portaudio19-dev
on Ubuntu / Debian, for other distributions you can search for the portaudio
package), it is required for the listen
command that listens on your microphone to match the recording against the database.
To build the binary:
git clone [email protected]:sfluor/musig.git cd musig make
You will then be able to run the binary with:
./bin/musig help
Usage
To do some testing you can download wav
songs by doing make download
.
Load them with ./bin/musig load "./assets/dataset/wav/*.wav"
And try to find one of your song name with:
./bin/musig read "$(ls ./assets/dataset/wav/*.wav | head -n 1)"
You can also try to use it with your microphone using the listen
command:
./bin/musig listen
If you want to record a sample and reuse it multiple times after you can also use the record
command:
./bin/musig record
For more details on the usage see the help command:
A shazam like CLI tool
Usage:
musig [command]
Available Commands:
help Help about any command
listen listen will record the microphone input and try to find a matching song from the database (Ctrl-C will stop the recording)
load Load loads all the audio files matching the provided glob into the database (TODO: only .wav are supported for now)
read Read reads the given audio file trying to find it's song name
record record will record the microphone input and save the signal to the given file
spectrogram spectrogram generate a spectrogram image for the given audio file in png (TODO: only .wav are supported for now)
Flags:
--database string database file to use (default "/tmp/musig.bolt")
-h, --help help for musig
Use "musig [command] --help" for more information about a command.
Testing
To run the tests you can use make test
in the root directory.
TODOs
- improve the documentation
- support for
mp3
files
Recommend
-
45
README.md "HASSH" - a Profiling Method for SSH Clients and Servers.
-
86
README.md JA3 - A method for profiling SSL/TLS Clients JA3 is a method for creating SSL/TLS client fingerprints that are easy to produce and can be eas...
-
47
Just like any lock can be picked, any biometric scanner can be fooled. Researchers have shown for years that the popular fingerprint sensor...
-
46
README.md
-
7
Hunting Exploits by looking for the Author’s fingerprints: Graphology of an ExploitJuly 28th 2021 new story6
-
4
Will passwords become pastwords? — New Yubico security keys let you use fingerprints instead of passwords Yubico's first hardware security keys to support biometric authentication. ...
-
4
Digital fingerprints of a million child abuse images madeMon, June 6, 2022, 9:16 AM·2 min read
-
5
Home ...
-
5
Midnight arrived. Color and fingerprints, 4k export
-
8
Fingerprints on M2 Midnight MBA
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK