Automation for converting audio from 23.976 fps to 24 fps / request track sample rate script command

I regularly use Audacity to convert movie audio from 23.976 to 24 fps for theater viewing. I was trying to write a script or macro to automate this but I can’t find a scripting command to adjust/assign the track’s sample rate.

This is the process I’m trying to automate. Let me know if you have any suggestions to automate. If there is not a way, I’m requesting a script command to change the track rate:

1- New project at 48000 and import the audio files
2- Under the Tracks menu, resample to 47952
3- For each track, change rate to 48000 (under the … menu next to the track name)
4- Export audio

If you always want to do that exact same thing every time, you can use ffmpeg in a batch file or script instead of Audacity.

Thank mate, you are correct. After posting this, I did more research and ended up writing a batch script using SoX. Not sure why, but SoX was recommended over ffmpeg for this task, but I’m pretty sure both would have equal results.

It’s good to hear your research panned out.

Too many times people want things that they are not willing to do any work on. They just want the answer handed to them on silver platter.