gochroma | Go bindings and high-level API | Speech library
kandi X-RAY | gochroma Summary
kandi X-RAY | gochroma Summary
Go bindings and high-level API to acoustic fingerprinting library chromaprint.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- goInt32s returns a slice of int32 pointers .
- Feed appends a line to the chromap
- New creates a new Printer .
- NewChromaprint creates a ChromaprintContext
- C chromaprint version
gochroma Key Features
gochroma Examples and Code Snippets
Community Discussions
Trending Discussions on gochroma
QUESTION
I would like to create an acoustic fingerprint of a FLAC or MP3 file using the chromaprint library in Go. I've been playing around with the following two Go libraries:
- gochroma, Go bindings for chromaprint
- fingerprint
Using the following code, a fingerprint of a "raw audio data stream" can be created (where reader
is of type io.Reader
):
ANSWER
Answered 2021-May-12 at 11:38I ended up with the following code which decodes a FLAC file to raw audio data using github.com/eaburns/flac (as Steven Penny pointed out) and then passes the data over to fingerprint/gochroma.
The resulting fingerprint doesn't seem to be the same as the one reported by fpcalc
for the same FLAC file, but when querying the AcoustID database using the generated fingerprint, the result is correct.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gochroma
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page