Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

works with track/upload but not with song/identify

$
0
0

Hi, I've captured 30 seconds of a music using ffmpeg in wav format.

My problem is that the music is recognized by using track/upload with this command :

curl -F "api_key=XXX" -F "filetype=wav" -F "track=@sound.wav""http://developer.echonest.com/api/v4/track/upload"> info.txt

info.txt contains :

{"response": {"status": {"version": "4.2", "code": 0, "message": "Success"}, "track": {"status": "pending", "song_id": "SOBFMHC12A6D4F9401", "audio_md5": null, "artist": "Daft Punk", "title": "High Life", "analyzer_version": "3.2.2", "release": "Discovery", "artist_id": "ARF8HTQ1187B9AE693", "bitrate": 1411, "id": "TRVPIUV144F9F9EFB1", "samplerate": 44100, "md5": "e00957509a255c5096551d3a09591caa"}}}

but when I used ENMFP_codegen using that command :

test sound.wav > code.txt

and then used song/identify using that command :

curl -F "api_key=XXX" -F "query=@json_string.json""http://developer.echonest.com/api/v4/song/identify"> info.txt

with json_string.json :

{
  "metadata": {
  },
  "code": "eJyVlwmSZCsIRbeUiONyHPe_hH-uma-ix9_dFVH4REC4IJqv1_0LHRIjJGvaJkT_r8WC2Ya4SELEsr4qgtZEhngTXnh1EX3JXnAshIhIyIiEKl7TV6-QGSBbwgfiKL6c_5f7JQh7Qs61mxcReeUDe74lfC5hGg2jMVyCXMzIxaaAOlbiZprkVZKIInilhFrKmE8FK6lqoUlE8aYtkTMFBp_ZEM6OSI6s5qSFLF7BQK4SGSLCIC_JHQwURVQESQnIlSRe0lT-FeFXhEGZWt2oFQVThEYV2DWzWrVHHSLKhzZ7Vck1U56chRaRa4qrZcw3wdTGzaK-Fipto9FfiPQAr0fUusx3wSSUIFrVHl0Y9IPI0B5DSRnK5RBqQxkcTatK_JjiKfIprKZSOAXTVIBT5qd8mZJbQmMpC0sBLsG-BPtSgEvQrYPINqZbiO8ioi13R26rXo42OgF7R5EfwXkqGqdrqmjORONQJUZlQjBlZBlSLtkQ_DPggOCf4TRkiXfVgNjMVPsUv1nEimURqVnT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8R0zGtI6YPa0bX56hfeIcr_7E-Tu8VMIfvKhr8KoLe1v13z09eNX1k53XeexQEw_ur8PVeXHDn1zrxR1_evjRnwd3J5cXdypM2IFbEPPiJvxaurj5nkG3GLidIaYXXIEJNGuW8cbLi-rsgxd15uPGN6mzv4zv8Qvc335ZK516UAsCr_G2oyfF3-HEO-HBKevKvf6sfv7VH3rIg1PY_sEJJvtcnDzRLcEJfJau9Dc-qQdePMKHvtQy-IQVt_XU3dNIMDnfc_G7w3mmnuEp0CFi4oHN-SObPFRN54_637lG6n7MeFrndZo4hL7Jc1tpTL2bQi8pdMuVHy7I9ZpQrjnTSOw_R2eWHw=="
}

I receive this in info.txt :

{"response": {"status": {"version": "4.2", "code": 0, "message": "Success"}, "songs": []}}

Viewing all articles
Browse latest Browse all 1582

Trending Articles