pub struct DelayedFingerprinter { /* private fields */ }
Expand description

DelayedFingerprinter allows you to generate Chromaprint fingerprints at a higher resolution than allowed by default.

By design, Chromaprint requires at least 3 seconds of audio to generate a fingerprint. To get more precise fingerprints, we can use multiple Contexts separated by a fixed delay. For example, to obtain a fingerprint for each second of audio, run 3 contexts separated by one second.

DelayedFingerprinter abstracts this logic out into a simple API. Once created, you just need to call feed() and check if any hashes were returned. Each hash will be accompnaied with a timestamp that indicates when the fingerprint was generated.

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.