2

Here I am facing a problem with MaxMsp. I want to send a sound file (no longer than 5 secs) to a web API, and get data from it.

This is how it works: I record or send a wav file (no longer than 5 secs), and get an analyzation back, which has the data (number, max 50) of my emotions like my anger, joy, calmness, energy.

Now I want to use MaxMsp to do this http request. There are two links may be needed

  1. THE SPECIFICATION OF THIS WEBAPI
  2. MAXMSP REFERENCE OF "MAXURL"

And my max file and a sample of a short screaming wav are in Google Drive

I'd be very appreciate if you could help. Thx.

JohnH
  • 2,713
  • 12
  • 21

1 Answers1

2

In order to send multipart-form request, you need to use dictionary message.

And there are some detail which didn't write in the document of maxurl,

The answer is the order of type of request,

If you use filename_in, post_data and multipart_form, then there still only one of them will be sent. In this case, the filename_in has the highest priority, second is post_data, the multipart_form is the last.

So, if you are using multipart_form, be sure you're not using others at the same time.

funclosure
  • 498
  • 6
  • 15