gistlib
index.tsxconst { exec } = require('child_process'); // Command to convert mp3 to robot effect using ffmpeg const command = 'ffmpeg -i input.mp3 -af afftdn=tn=300:s=59:nt=f:smoothing=10,aresample=async=1000 output.mp3'; exec(command, (error, stdout, stderr) => { if (error) { console.error(`exec error: ${error}`); return; } console.log(`stdout: ${stdout}`); console.error(`stderr: ${stderr}`); }); 407 chars14 lines
const { exec } = require('child_process'); // Command to convert mp3 to robot effect using ffmpeg const command = 'ffmpeg -i input.mp3 -af afftdn=tn=300:s=59:nt=f:smoothing=10,aresample=async=1000 output.mp3'; exec(command, (error, stdout, stderr) => { if (error) { console.error(`exec error: ${error}`); return; } console.log(`stdout: ${stdout}`); console.error(`stderr: ${stderr}`); });
gistlibby LogSnag