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

iOS ENAPIRequest: unexpected connectionShouldUseCredentialStorage

$
0
0

I'm using the sample iOS app and am getting this error: ENAPIRequest: unexpected connectionShouldUseCredentialStorage

I'm trying to retrieve songs by Gary Moore that are in the musical key of A, hence the 9 for that musical key.

Here is the key part of my code:

  • (IBAction)testGETButtonAction:(id)sender {

    NSMutableDictionary *parameters = [NSMutableDictionary new]; [parameters setValue:@"api_key" forKey:@"KSLEJSLDRABIEKSND"]; [parameters setValue:@"9" forKey:@"key"]; [parameters setValue:@"gary moore" forKey:@"artist"];

    [ENAPIRequest GETWithEndpoint:@"song/search" andParameters:parameters andCompletionBlock:^(ENAPIRequest *request) { songs = [request.response valueForKeyPath:@"response.songs"]; }];

    NSLog(@"songs = %@", songs); }

Is the above code correct?

What is the meaning of the error message?

Is it okay to set my api_key here for the moment, just to test?

Thank you very much


Song Release Date

$
0
0

Yeah.. this data is way better than what I was finding on Musixmatch

iOS ENAPIRequest: unexpected connectionShouldUseCredentialStorage

$
0
0

Thanks all. The fix above worked for me.

Era-specific playlist

'unknown error' on post iOS sdk

$
0
0

Hi, I'm just getting into the echonest sdk, so I apologize if this is a newbie question.

When do a post outside of the iOS sdk like this:

http://developer.echonest.com/api/v4/tasteprofile/list?api_key=API-KEY

I get good json data.

However when I do this in my xcode app:

[ENAPIRequest POSTWithEndpoint:@"tasteprofile/list" andParameters:nil andCompletionBlock:^
              (ENAPIRequest *request)
              {
                  if (request.completedSuccessfully)
                  { //DoSomething }
                  else
                  {
                      NSLog(@"Echonest errorMessage: %@", request.errorMessage);
                  }

request comes back unsuccessful.

'unknown error' on post iOS sdk

$
0
0

The error I get is 'Unknown Error'

I forgot to add, doing a create post works fine:

[ENAPIRequest POSTWithEndpoint:@"tasteprofile/create" andParameters:parameters andCompletionBlock:
         ^(ENAPIRequest *request) {}];

I get good json data. Deleting a tasteprofile also works well.

doing an update on the tasteprofile inside the iOS sdk fails, though.

In summary, tasteprofile in Echo Nest iOS sdk:

  • create: good
  • update: fail
  • list: fail
  • delete: good

'unknown error' on post iOS sdk

$
0
0

You can delete this one.

I should be using a GETWithEndpoint call.

id:Musicbrainz song/track?

$
0
0

Has this feature been integrated? Can I do a song lookup using a MusicBrainz Song ID?


Deezer track and mbz track

$
0
0

Paul, has the API been updated yet to support musicbrainz song IDs yet? Do you anticipate this happening in the next few months, if it hasn't happened yet?

Definitions for Key, Mode & Loudness?

$
0
0

Hi Sudam,

I just come across of the link that you have provided and it is helpful! At least, I have an idea on what to share with my dad. He is really fond of playing music in our house and for me it wasn't that nice to hear and i found it very annoying. It wasn't music at all but it is already a destructing noise especially to our neighborhood because I think his tempo, loudness and etc are very inappropriate. Thanks.

Peachy


http://www.tek-micro.com/microsoft-office-2010-home-student-download-for-windows-1

Echonest is down !

$
0
0

As of now, Service is doing great and very accessible to all the users especially to the new ones. That's actually based from my experience.

Samantha


http://www.tek-micro.com/office-for-mac-home-and-student-2011-download

Key Confidence

$
0
0

Hi all:

I have a few questions I hope can be answered:

  1. Did key and mode confidence values get added to audio_summary? Where do I find information on buckets like audio_summary? I did a search on audio_summary on the site but didn't see the detailed list of data elements included in it. Can you also provide an example call in iOS?

  2. Could you also help with understanding how to use tracks in an iOS call: NSMutableDictionary *parameters = [NSMutableDictionary new]; [parameters setValue:@"abc..." forKey:@"api_key"]; [parameters setValue:@"9" forKey:@"key"]; [parameters setValue:@"0" forKey:@"mode"]; [parameters setValue:@"gary moore" forKey:@"artist"]; [parameters setValue:@"tracks" forKey:@"bucket"]; [parameters setValue:[NSArray arrayWithObjects:@"7digital-US", nil] forKey:@"bucket"];

returned an error.

Thanks

Key Confidence

$
0
0

key, mode and confidence have been part of the audio_summary for years. This tutorial provides more info about the audio_summary attributes.

In your call, you are setting the bucket parameter twice, to two different values, which is probably not what you want.

id:Musicbrainz song/track?

$
0
0

Sorry, this feature hasn't made it to the top of the queue yet. -- Paul

Song/identify will be offline for extended maintenance

$
0
0

All,

Echoprint song/identify is back online. Thank you for your patience.

David


Key Confidence

$
0
0

Thank you very much Paul, the tutorial helped me understand how to access detailed song data. I'll check out other tutorials too.

Cheers!

upload track problems

$
0
0

Hello, I am having the same problem with the track.upload(file, true). Did you find a solution?

Error message: 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.util.Commander.sendCommandRaw(Commander.java:305) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.util.Commander.getStringResults(Commander.java:190) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.util.Commander.getMapResults(Commander.java:175) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.util.Commander.getCheckedResults(Commander.java:155) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.util.Commander.sendCommand(Commander.java:101) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.util.Commander.sendCommand(Commander.java:78) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.util.Commander.sendCommand(Commander.java:72) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.ENItem.getItemMap(ENItem.java:231) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.ENItem.(ENItem.java:60) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.Track.(Track.java:31) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.EchoNestAPI.newTrackByMD5(EchoNestAPI.java:550) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.EchoNestAPI.getKnownTrack(EchoNestAPI.java:497) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.EchoNestAPI.getKnownTrack(EchoNestAPI.java:519) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.echonest.api.v4.EchoNestAPI.uploadTrack(EchoNestAPI.java:462) 05-15 00:20:25.714: E/AndroidRuntime(2046): at com.hci.fitbeat.SongsManager.getPlayList(SongsManager.java:50)

code:

print("File currFile = new File(file.getPath());
                     if(!currFile.exists()) {
                         System.err.println("Can't fine " + file.getPath());
                     }
                     else {
                         System.out.println("found file " + file.getPath());
                        Track track = en.uploadTrack(currFile, false); //line where throws error
                        track.waitForAnalysis(30000);
                        if (track.getStatus() == Track.AnalysisStatus.COMPLETE) {
                            System.out.println("Tempo: " + track.getTempo());
                            System.out.println("Loudness: " + track.getLoudness());
                            System.out.println();
                            System.out.println("Beat start times:");

                            TrackAnalysis analysis = track.getAnalysis();
                            for (TimedEvent beat : analysis.getBeats()) {
                                System.out.println("beat " + beat.getStart());
                            }
                        } else {
                            System.err.println("Trouble analysing track " + track.getStatus());
                        }
                     }");");

Where is AllOnTheOne.mp3?

$
0
0

figured I'd just add that adding -R, as in sudo chmod -R 777 echonest-remix-examples will change permisions for all of the files and that after chown -R ya might want to change permission back to 755.

How to get multiple songs in iOS using song/profile

$
0
0

I read this thread that shows how to request information on multiple songs using song/profile using this [URL][2]: http://developer.echonest.com/api/v4/song/profile?api_key=API_KEY&format=json&id=SOATBBX1311AFDC272&id=SOBTLUJ1315CD4A54B&bucket=audio_summary

I'm trying to replicate this using iOS: NSMutableDictionary *parameters = [NSMutableDictionary new]; [parameters setValue:@"left blank" forKey:@"api_key"]; [parameters setValue:@"SODRXBW13666C466B2" forKey:@"id"]; [parameters setValue:@"SOCYEHS1311AFDE267" forKey:@"id"]; [parameters setValue:@"audio_summary" forKey:@"bucket"];

I'm only getting data for the second (last) song id, since the first id Key is being overwritten by the second id Key, of course.

I also tried stuffing both song ids into the same parameter value, which returned 0 songs: [parameters setValue:@"SODRXBW13666C466B2,SOCYEHS1311AFDE267" forKey:@"id"];

I also saw in that post that creating a taste profile to retrieve many songs back is recommended but I'd first like to understand how to do it this way.

Thanks

[2]: e.g. http://developer.echonest.com/api/v4/song/profile?api_key=API_KEY&format=json&id=SOATBBX1311AFDC272&id=SOBTLUJ1315CD4A54B&bucket=audio_summary

How to get multiple songs in iOS using song/profile

$
0
0

Hi there,

To send multiple values for a single parameter as in your example, try setting the value of the id parameter to an NSArray of two (or more) strings. You can see examples of this in the library's tests, e.g:

[parameters setValue:[NSArray arrayWithObjects:@"blogs", @"images", nil] forKey:@"bucket"];
Viewing all 1582 articles
Browse latest View live