gochroma

package module
v0.0.0-...-a294aa5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 3 Imported by: 2

README

gochroma GoDoc

Go bindings and high-level API to acoustic fingerprinting library chromaprint

Licenses
  • chromaprint: LGPL2.1
  • gochroma: MIT

Documentation

Overview

Package gochroma provides a high-level API to the acoustic fingerprinting library chromaprint.

Index

Constants

Available algorithms for fingerprinting.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

A Printer is a fingerprint.Calculator backed by libchromaprint.

func New

func New(algorithm int) (p *Printer)

New creates new Printer. Returned Printer must be closed with Close(). Note that if libchromaprint is compiled with FFTW, New should be called only from one goroutine at a time.

func (*Printer) Close

func (p *Printer) Close()

Close existing Printer.

func (*Printer) Fingerprint

func (p *Printer) Fingerprint(i fingerprint.RawInfo) (fprint string, err error)

Fingerprint implements fingerprint.Calculator interface.

func (*Printer) RawFingerprint

func (p *Printer) RawFingerprint(i fingerprint.RawInfo) (fprint []int32, err error)

RawFingerprint implements fingerprint.Calculator interface.

Directories

Path Synopsis
Package chromaprint is a Go binding to acoustic fingerprinting library chromaprint.
Package chromaprint is a Go binding to acoustic fingerprinting library chromaprint.

Jump to

Keyboard shortcuts

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