Get Metadata from local echoprint-server

96 views
Skip to first unread message

Eugenio Spataro

unread,
Sep 28, 2015, 9:11:35 AM9/28/15
to echoprint
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}
]

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

3) 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?



Long Nguyen

unread,
Sep 30, 2015, 12:26:29 PM9/30/15
to echoprint
Hi,

First install mongoengine:
$ pip install mongoengine

Use my modified api.py (attached)

Restart server.

Hope that helps
api.py
Reply all
Reply to author
Forward
0 new messages