Giter Site home page Giter Site logo

Comments (7)

worldveil avatar worldveil commented on July 22, 2024 2

From the constants in the fingerprinting module, you can derive it yourself.
https://github.com/worldveil/dejavu/blob/master/dejavu/fingerprint.py#L14

In the case of the ones that are in the current master, it would be:
1 sec / 44100 * 4096 * 0.5 = 46.4399 ms per offset

from dejavu.

wangzhengyi avatar wangzhengyi commented on July 22, 2024 1

offset_seconds means the match begin time? anybody who can tell me how to get the match begin time??

from dejavu.

worldveil avatar worldveil commented on July 22, 2024

diff is the offset from the beginning of the audio file in WINDOW_SIZE chunks.

Here only 2 hashes matched in alignment, meaning whatever you were looking for likely wasn't in the file you had dejavu listen to.

You only get negative diffs with erroneous hash alignments - thus whenever the diff is negative, there was no match in your database for the song you fingerprinted.

This isn't a bug, this is just how the library operates.

from dejavu.

edwinmugendi avatar edwinmugendi commented on July 22, 2024

Thanks for the clarification.
I've run another test and I've go Diff is 14472 with 5 offset-aligned matches", Is there an exact number of the diff and offset that when you get guarantees there was a match?

from dejavu.

worldveil avatar worldveil commented on July 22, 2024

No, there is no exact number.

The diff is simply the time offset into the song in which the matched audio was found. The number of offset-aligned matches is a measure of confidence, the higher the better.

from dejavu.

edwinmugendi avatar edwinmugendi commented on July 22, 2024

I've googled for window_size and cannot find good material on it.

What are the units of measuring WINDOW_SIZE and how can I convert them to seconds so that I can know where the matches begin?

Also, kindly point me to good material on WINDOW_SIZE.

Thanks in advance

from dejavu.

worldveil avatar worldveil commented on July 22, 2024

Yes, offset_seconds is the number of seconds before the recognized clip starts.

from dejavu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.