Describe the problem/error/question
I have an audio file from OpenAI, and I need to send it to Telegram as a voice message, it’s .ogg format. I use n8n cloud, and don’t have a node with ‘send voice’ option, so I need to use external converter with API (I use freeconverter.com)
Here’s the output of OpenAI node. So, It seems I have .mp3 file, but as n8n binary data:
As I see API docs of freeconverter, I need to do next steps:
- Use HTTP node to create a task in freeconverter and URL for uploading my file to the server on freeconverter
- Use HTTP node to send my file to freeconverter
- Use HTTP node to convert my file
- Use HTTP node to get my file in .ogg format
The result of my 1st step is URL and signature for uploading:
What is the error message (if any)?
So, I get an error on my 2nd step.
I try to use another option, and get an error:
I try to use file option (just changed the parameter type), and it’s fail again:
**So, I can’t actually get a file from n8n to use it next. **
- I use n8n cloud, and it seems I’m not able to use “Read/Write File” node
- I’m not an enterprise user, and it seems I’m not able to change the environment variable N8N_DEFAULT_BINARY_DATA_MODE from default to filesystem
Hello @Natalia_D
in this step:
can you try this expression
{{Object.keys($('Text Answer to Audio').item.binary)}}
let me know if this works…
Can you connect the node that outputs the file to this node?
or like this
ok now can you try remove this expression
{{Object.keys($('Text Answer to Audio').item.binary)}}
and just use “Input Data Field Name” Fixed:
data
wait, i think we need to use Merge node
Like this? The same error
like this
i am trying to replicating same behavior…
the merge node is append
So, If I add a merge node, I lose the id field. And I have to use “the old” call for my file. I’ve also tried your first suggestion string, it doesn’t work
Do you know, can we tag somehow n8n developers?)
I’m sure if you share the workflow, it will be easier to debug 
it’s not an issue, there is just some wrong mapping or logic in your workflow not in n8n itself!
this is not working because the expression is wrong
I can see the Binary on the left so the expression in this case should be like this:
{{Object.keys($('Text Answer to Audio').item.binary)}}
or with just “Input Data Field Name” Fixed: data
the bottom diagram seems to work
I’ll come back with the full testing tomorrow
And thank you a lot!!
1 Like
Amazing, it works
Thanks!
Could you pls type what was wrong exactly? I didn’t really catch the issue, and why it works now