chromaprint

package
v1.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const Enabled = false

Enabled is false, as audio is only fingerprinted when it's built with cgo and the chromaprint tag

View Source
const MaxDuration = 120 * time.Second

MaxDuration is the most of audio which is fingerprinted, which is enough for AcoustID to match it

Variables

View Source
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

func Fingerprint

func Fingerprint(context.Context, io.Reader) (string, time.Duration, error)

Fingerprint returns ErrNotEnabled, as audio is only fingerprinted when it's built with cgo and the chromaprint tag

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL