Hello, I need to convert a file generated with the ElevenLabs API from MP3 to AAC format. I’m trying to use the FreeConverter API, but I’m unable to correctly upload the binary input file. Can anyone help me? Thanks!
Most likely that’s because data2
binary data is missing fileName
property.
Try to add one using Code node.
However, the error mentions name
property. I wonder what are other settings in your node that may refer to name
?
Could you post the node using the </>
button here?
Hmmm, I don’t know how to add the Name property using the Code node. I’ll send you the other nodes.
Node Elevenlabs translation:{ "nodes": [ { "parameters": { "method": "POST", "url": "https://api.elevenlabs.io/v1/text-to-speech/mivZUqBVZLiFHFd0t6bj?output_format=mp3_44100_128", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "xi-api-key", "value": "sk_xxx" }, { "name": "Content-Type", "value": "application/json" } ] }, "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"text\": \"{{ $json.output }}\",\n \"model_id\": \"eleven_multilingual_v2\"\n}", "options": { "response": { "response": { "responseFormat": "file", "outputPropertyName": "data2" } } } }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 640, -260 ], "id": "f7646238-5b3b-4843-a3b7-b460a8058073", "name": "HTTP Request", "alwaysOutputData": false } ], "connections": { "HTTP Request": { "main": [ [] ] } }, "pinData": {}, "meta": { "templateCredsSetupCompleted": true, "instanceId": "734acc94be512eb21d5361a8f32dff792515aa6f7996c5a73a04bc51f98b8c2d" } }
Node Upload on FreeConverter { "nodes": [ { "parameters": { "method": "POST", "url": "https://api.freeconvert.com/v1/process/import/upload", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Authorization", "value": "Bearer api_production_xxx" }, { "name": "Content-Type", "value": "multipart/form-data" } ] }, "sendBody": true, "contentType": "binaryData", "inputDataFieldName": "data2", "options": { "response": { "response": { "responseFormat": "json" } } } }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 900, -480 ], "id": "c5152649-cb19-4d68-97d0-e8e952cb273e", "name": "Upload su FreeConverter" } ], "connections": { "Upload su FreeConverter": { "main": [ [] ] } }, "pinData": {}, "meta": { "templateCredsSetupCompleted": true, "instanceId": "734acc94be512eb21d5361a8f32dff792515aa6f7996c5a73a04bc51f98b8c2d" } }
Two options here:
- Copy node from my previous post and paste it into your workflow and wire it up accordingly.
- Check the node from my previous post for settings and code used in there.
Here is how to post the workflow so that it renders properly in the forum.
Thank you. Still, having no sample data, hard to tell what the data structure is and how to fix it.
What will happen if you remove Content-Type
header and Options/Response completely?
If this won’t fix it, try adding name
prop like this.
Hi Olek, if you send me your email address, I can send you the API keys so you can try it yourself directly. You would be a great help to me. I’ll also send you the sample file generated by ElevenLabs.
Allright, this looks like a succesful request. Solved?
No…
Wrong data reference:
Original is red, correct one is green.
But I mean this is a different question. Maybe you wanted to post in Help me Build my Workflow - n8n Community
Maybe your original file got expired. I will try to look into this later. Need to go.
Meanwhile, try to double-check every step and data point in your workflow.
Thanks Olek!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.