Closed esledov closed 6 years ago
I figured it out, I think.
function saveToFile(fname, buffer) {
const arr = [];
for (i = 0; i < buffer.length; i++) {
arr.push(Buffer.from(buffer[i]));
}
fs.writeFileSync(fname, Buffer.concat(arr), 'binary');
}
Closing for inactivity.
Hi,
Could you please provide an example on how to save recorded mp3 file to a local drive? (I am trying to use it from Electron app).
Thank you.