How to turn an mp3 audio into a link to send via HTTP request?

How can I generate this link?

Generate audio node:

HTTP request node (Send video):

Workflow:

Have you tried choosing Form-Data as content type and choosing n8n Binary File from dropdown menu?

The API I use only accepts URLs

I understand. I suppose you have to upload that file into a publicly accessible URL and use that exact URL as a parameter. The easiest approach would be the one I did before: using tmpfiles.org API

What you have to do:

  • Add an HTTP Request node between your ‘audio generation’ node and the ‘send video’ node where you have to address the file

  • Set the node as follows:

  • The output of this request that will be sent will be a publicly accessible URL of the file you uploaded. Use this URL as a parameter in the next node under the name ‘audio’

Note: This URL is only temporary (duh). If you wish to work with a specific file for a longer time I recommend searching for external apps that offer file upload. Or if you are self-hosting then you are able to use a Docker image of your own for safety.

1 Like

free and easy way would be upload to google drive and use that.

1 Like

Thanks for the help, I solved the problem, just convert to base64, I discovered that the API I use accepts base64 as a response.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.