✨ Fingerprinting audio
This commit is contained in:
parent
4057d00c46
commit
d8cae5b9c4
3 changed files with 105 additions and 0 deletions
15
app/run.go
15
app/run.go
|
|
@ -24,7 +24,22 @@ func quit() {
|
|||
os.Exit(0)
|
||||
}
|
||||
|
||||
func testFp() {
|
||||
fp, err := media.Fingerprint("/home/drj/MyFiles/Videos/WebShows/YouTube/Dolly_Parton_-_Topic/Just_Because_I_m_a_Woman.Dolly_Parton_-_Topic.Fmv-XQerVkM.webm")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
// fmt.Printf("%+v\n", fp)
|
||||
ids, err := media.LookupFingerprint(fp)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("%+v\n", ids)
|
||||
quit()
|
||||
}
|
||||
|
||||
func Run(step AppStep) {
|
||||
testFp()
|
||||
for step < Quit {
|
||||
switch step {
|
||||
case Pick:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue