Audacity uses wrong export settings when exporting through macros


On the Manage Macros support page (Manage Macros | Audacity Support) one can read:

“The Export command will use the settings you used the last time you used the same command from the File > Export > Export… menu command, or default settings if you have never used that command from the menu”

However it seems to be a bug preventing the above behavior, which sims to limit export commands to export to default settings only.

Steps to reproduce the bug:

1: Go to Macro Manager and create and save a macro with steps 1: Export as MP3; 2:END
2: Open or create a 24 bit, 48000 Hz Stereo audio track;
3: Export it as 48000 Hz MP3 file (go to File > Export Audio, select MP3 Format, set options as Stereo, 48000 Hz, Variable, 220-260 kbps, then export entire project (this goes as expected);
4: Close the file/project;
5: Go to Macro Manager, select the created macro, click Files and select some 24 bit, 48000 Hz files.
6: Wait for the files to be exported.

The exported files has 44100 Hz sample rate instead of 48000 Hz previously saved in step 3. This behavior persists in version 3.5 beta 3.

So if you have a large collection of files with sampling rates multiple of 48000 Hz you will either have to manually export one by one or you will have your files resampled to 44100 Hz through interpolation and with unnecessary loss of quality.

My feature request is to make export commands such as “Export as MP3” have customizable settings, which would be great.


Try setting the Audacity project rate to 48000Hz before you run the macro.

It worked. Thanks.

This topic was automatically closed after 30 days. New replies are no longer allowed.