Documentation
¶
Overview ¶
Package chromaprint makes the Chromaprint fingerprint of audio, which AcoustID looks up (see the acoustid package). It uses the Chromaprint library, and FFmpeg to decode the audio, so it's only built with cgo, and the chromaprint build tag, which the Makefile sets when it finds Chromaprint. Otherwise, Enabled is false, and Fingerprint returns ErrNotEnabled.
Index ¶
Constants ¶
const Enabled = false
Enabled is false, as audio is only fingerprinted when it's built with cgo and the chromaprint tag
const MaxDuration = 120 * time.Second
MaxDuration is the most of audio which is fingerprinted, which is enough for AcoustID to match it
Variables ¶
var ( // ErrNoAudio is returned by Fingerprint for audio which has no samples // to fingerprint ErrNoAudio = errors.New("chromaprint: no audio to fingerprint") // ErrNotEnabled is returned by Fingerprint when it's built without cgo // or the chromaprint tag, as audio is only fingerprinted with them ErrNotEnabled = errors.New("chromaprint: not enabled, as it's built without cgo or the chromaprint tag") )
Functions ¶
Types ¶
This section is empty.