wo80 / acoustid.net Goto Github PK
View Code? Open in Web Editor NEWAcoustID fingerprinter and webservice access in .NET
AcoustID fingerprinter and webservice access in .NET
I'm using the following code
var fileName = @"C:\The Platters - The Great Pretender.mp3";
var decoder = new NAudioDecoder(fileName);
var ctx = new AcoustID.ChromaContext();
ctx.Start(decoder.SampleRate, decoder.Channels);
decoder.Decode(ctx, 120);
ctx.Finish();
var fingerPrint = ctx.GetFingerprint();
and compare the results to
fbcalc.exe -length 120 "C:\The Platters - The Great Pretender.mp3"
In both cases, the fingerprints are 3806 characters long and equal up to position 3200. After that, they differ.
Do you know if this is expected?
Both fingerprints can be used to resolve against the web service, and both have almost the same score (0.9830894 vs. 0.98312235), where the fbcalc.exe
score is slightly more accurate.
Am I missing something here? Can I do anything to become more compatible with the fpcalc result?
It seems that you are using the test API key in https://github.com/wo80/AcoustID.NET/blob/master/Fingerprinter/MainForm.cs#L94
The API key might stop working at any time, please either register a new one or make it completely configurable.
UnhandledException - unhandled exception: System.Xml.XmlException: There are multiple root elements. Line 2, position 2
The original author of AcoustID has updated his chromaprint:
https://oxygene.sk/2016/12/chromaprint-1-4-released/
This change is also reflected in the fpcalc utility, which can now work on streams. In fact, the fpcalc utility has been completely rewritten. It now also supports JSON output for easier integration, since you can find JSON parser in the standard library of almost every new programing language.
Could you please have a look and update your code (if necessary)?
You reference https://bitbucket.org/acoustid/chromaprint/src/3f07ceef8438058d14a1d479009cb66779cf3594/LICENSE.md?at=master&fileviewer=file-view-default for adding the LGPL license.
However they mention the only reason for LGPL is by referencing FFMPEG, and once that is removed it will be MIT. However this lib does not rely on FFMPEG. Is there a reason it is LGPL instead of MIT?
I am currently tinkering with your project and using the NAudio decoder. I noticed that the NAudio decoder is only working for 16bit WAV files.
I was trying to adapt the code in order to get it to work with 24bit files as well but without success. I get different hashes for the 16bit and 24bit file. Can you please guide me what needs to be done in order to support 24bit WAV for the NAudio decoder?
I'm developing a C# app that scans your local library, searches for matching songs in Spotify and adds them to a playlist. At this moment it uses just the file name or MP3 tags to match the songs. I would like to expand it with comparing audio fingerprints for files with missing tags or names.
From what I gathered the only example how to do this was deleted and I can't find anything that would explain how to do it. Is there an easy way to just create a fingerprint from a path, compare it with the database and get a possible song tile and author in return?
I am trying to use AcoustID.NET for a project but the examples that was provided to a different issue does not work.
When I try to use the following, context does not have a Consumer property:
var decoder = new NAudioDecoder(filename);
var context = new ChromaContext();
context.Start(decoder.SampleRate, decoder.Channels);
decoder.Decode(context.Consumer, 120);
context.Finish();
var fp = context.GetFingerprint();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.