echonest / echoprint-ios-sample

Sample Echoprint song identifier for iOS
http://echoprint.me/
165 stars 53 forks source link

How to interpret the Hash Code #6

Closed digitalDeveloper closed 12 years ago

digitalDeveloper commented 12 years ago

Hi, i'm working on iPhone app and i want ask if there are a way for interpret the Hash Code result after the recording. How can i retrive information about frequency and timestamp ?

bwhitman commented 12 years ago

look at fp.py in echoprint-server

digitalDeveloper commented 12 years ago

I've read that the code generated is a base64 code, but i can find also '_' characters, so how can i decode the result code?

bwhitman commented 12 years ago

please look at fp.py in echoprint-server. all your questions are answered there.

digitalDeveloper commented 12 years ago

Sorry but i've looked at fp.py but python is not my language and i can't understad how decode the base 64 string
I think that the decoder used in this code convert also '_' character... i'm wrong??

ddesroches commented 12 years ago

The codestring is base64 encoded with "file/url safe" syntax, so underscore '_' is used instead of slash '/' and dash '-' instead of plus '+'. See http://www.doughellmann.com/PyMOTW/base64/ for a good description of this (for Python).