runemadsen / HTTP-Requests-for-Processing

http://www.runemadsen.com
MIT License
140 stars 39 forks source link

how to get mp3 file ?? #19

Open jhonoryza opened 8 years ago

jhonoryza commented 8 years ago

hey i want the callback function from "get.content" return byte not string, because my http server return bytes format, how can i achieve this ?? thx :)

ascorbin commented 5 months ago

It would be so nice if you could also provide the return content as a byte stream. I am currently trying to communicate with the OpenAI API, and the text-to-speech interface gives me an MP3 byte stream. In Processing, you could then save it as an MP3 using saveBytes(). That would be great! Best regards! Greetings!