pub struct Context { /* private fields */ }

Implementations

Creates a new Chromaprint context with the given algorithm. To use the default algorithm, call default.

Returns the sample rate used internally by Chromaprint. If you want to avoid having Chromaprint internally resample audio, make sure to use this sample rate.

Starts a fingerprinting session. Audio samples will be buffered by Chromaprint until finish is called.

Feeds a set of audio samples to the fingerprinter.

Signals to the fingerprinter that the audio clip is complete. You must call this method before extracting a fingerprint.

Important note: before calling finish, you should provide at least 3 seconds worth of audio samples. The reason is that the size of the raw fingerprint is directly related to the amount of audio data fed to the fingerprinter.

In general, the raw fingerprint size is ~= (duration_in_secs * 11025 - 4096) / 1365 - 15 - 4 + 1

See detailed discussion here.

Returns the raw fingerprint.

Returns a hash of the raw fingerprint.

Under the hood, Chromaprint computes a 32-bit SimHash of the raw fingerprint.

Returns a compressed version of the raw fingerprint in Base64 format. This is the format used by the AcousticID service.

Trait Implementations

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

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.