Audacity refuses to export mp3 from macro

Hi there,
I have created a small macro in Audacity (installed from the Manjaro repo) to adjust the loudness of a sound file. Finally, the whole thing is to be exported as an mp3.
Unfortunately this does not work. I get the following error message:
“The export cannot be continued.
/home/username/Documents does not have write permissions.”

Does anyone have any ideas?

This an ambigous message - the application might see a non-existing folder as not having write permission.

Ensure the folder exist

3 Likes

Hah, you’re right.
Audacity expects an existing Documents folder and not my German “Dokumente” folder.
I’ll probably have to find out where I can find the default settings for this macro command and adjust them. Unfortunately, this is not possible directly from the macro settings in Audacity.

Thank you!

You could just create a ~/Documents/ directory that is a symbolic link to the ~/Dokumente/ directory:

ln -s ~/Dokumente ~/Documents
3 Likes

Thanks for the tip!
But I would also like to adjust the mp3 encoder settings, which strangely enough is not directly possible in the macro function.

After further investigation I think Audacity always using the same mp3 export parameters and export folder is a bug in the Export as mp3 macro function. The macro version should use the last settings from the File/Export Audio menu but that does not happen in Audacity version 3.7.0.

@fumum_vendidi

I’m not sure what your purpose is, but I’d recommend trying sox.

volume up 3db and normalize.

sox in.flac out.flac gain -l 3

Bulk sample

fd -e flac -x sox "{}" "{}"___new.flac  gain -l 3

Even if there are 1000 songs to process, it will be done while you are taking a bath.

sudo pacman -S sox # archLinux(Manjaro)

Unfortunately SoX doesn’t allow normalization to a specific LUFS value. And it seems to be out of development since 2015 according to SourceForge.

My task is to normalize a bunch of Flac-files to a certain LUFS value and save them as high quality VBR mp3s via batch processing.

Audacity macro LAME export allows use of additional CLI parameters
Exporting using an external encoder program - Audacity Manual

lame options allow user to specify encoder settings, write ID3 tags and use ReplayGain loudness scanning
lame — Arch manual pages
ReplayGain - Hydrogenaudio Knowledgebase

My task is to normalize a bunch of Flac-files to a certain LUFS value

There are also some Linux audio players that support R128 loudness scanning
ReplayGain - Implementations - Wikipedia
I use a Deadbeef plugin for scanning whole albums or short playlists, but CLI tools are faster for processing larger batches

AUR - loudgain
A loudness normalizer that scans music files and calculates loudness-normalized gain and loudness peak values according to the EBU R128 standard, and can optionally write ReplayGain-compatible metadata

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