Documentation ¶
Index ¶
- func AddNoise(signal []float64)
- func Bartlett(signal []float64) []float64
- func Compare(sourceFP [][]int, destFP [][]int) float64
- func FFT(signal []float64) []float64
- func Fingerprint(filename string, winSize, hopSize int, windowFunction string, addNoise bool) [][]int
- func GetHighestMatchRate(sampleFilename string, sampleFingerprint [][]int, audioFilename string, ...) float64
- func Hamming(signal []float64) []float64
- func Hann(signal []float64) []float64
- func Spectrogram(signal *Signal, winSize, hopSize int, windowFunction string) [][]float64
- type Signal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
Compare compares two 2-D slice and return the match rate a.k.a the number of matching elements over the total number of elements.
func Fingerprint ¶
func Fingerprint(filename string, winSize, hopSize int, windowFunction string, addNoise bool) [][]int
Fingerprint takes a .wav file and output its fingerprint.
func GetHighestMatchRate ¶
func GetHighestMatchRate(sampleFilename string, sampleFingerprint [][]int, audioFilename string, audioFingerprint [][]int) float64
GetHighestMatchRate returns the highest match rate between the fingerprint of the sample and the fingerprint of the target audio.
Types ¶
Click to show internal directories.
Click to hide internal directories.