Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Metadata from local echoprint-server #39

Open
Lupenio opened this issue Sep 28, 2015 · 1 comment
Open

Get Metadata from local echoprint-server #39

Lupenio opened this issue Sep 28, 2015 · 1 comment

Comments

@Lupenio
Copy link

Lupenio commented Sep 28, 2015

Hi,

I am using echoprint with a local echoprint-server and I am doing these steps:

  1. ./echoprint-codegen SympathyForTheDevil.wav > wav/SympathyForTheDevil.json

The json file is like this:
[
{"metadata":{"artist":"The Rolling Stoner", "release":"", "title":"Sympathy for the Devil", "genre":"Rock", "bitrate":1411,"sample_rate":44100, "duration":356, "filename":"SympathyForTheDevil.wav", "samples_decoded":3924992, "given_duration":0, "start_offset":0, "version":4.12, "codegen_time":1.072712, "decode_time":2.966706}, "code_count":9030, "code":"eJzcvQ.....", "tag":0}
]

  1. In my folder /echoprint-server/util: python fastingest.py /home/eugenio/echoprint/echoprint-codegen-realtime/wav/SympathyForTheDevil.json

  2. With chrome Advanced Rest Client, I am running this query: "http://localhost:9090/query?fp_code=eJzcvQu...."

And I am receveing this result:

{
total_time: 1365
score: 1575
ok: true
query: "eJzcvQu....."
message: "OK (match type 6)"
qtime: 98
match: true
track_id: "TRVDZVT15013A15382"
}

What should I do to get even metadata from my local server?

@zecarlosalmeida
Copy link

With this query you're running in your database.
Your server has mores fingreprints, or just this one?

Em 28/09/2015 10:18, EugenioSpataro escreveu:

Hi,

I am using echoprint with a local echoprint-server and I am doing
these steps:

  1. ./echoprint-codegen SympathyForTheDevil.wav >
    wav/SympathyForTheDevil.json

The json file is like this:
[
{"metadata":{"artist":"The Rolling Stoner", "release":"",
"title":"Sympathy for the Devil", "genre":"Rock",
"bitrate":1411,"sample_rate":44100, "duration":356,
"filename":"SympathyForTheDevil.wav", "samples_decoded":3924992,
"given_duration":0, "start_offset":0, "version":4.12,
"codegen_time":1.072712, "decode_time":2.966706}, "code_count":9030,
"code":"eJzcvQ.....", "tag":0}
]

  1. In my folder /echoprint-server/util: python fastingest.py
    /home/eugenio/echoprint/echoprint-codegen-realtime/wav/SympathyForTheDevil.json

  2. With chrome Advanced Rest Client, I am running this query:
    "http://localhost:9090/query?fp_code=eJzcvQu...."

And I am receveing this result:

{
total_time: 1365
score: 1575
ok: true
query: "eJzcvQu....."
message: "OK (match type 6)"
qtime: 98
match: true
track_id: "TRVDZVT15013A15382"
}

What should I do to get even metadata from my local server?


Reply to this email directly or view it on GitHub
#39.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants