How to set Bitdepth for a Track using Modscript Pipe ?


Is there any way we can set bitdepth using ModScript Pipe ? Currently the existing commands doesn’t provide a way to do that. Please help me with this.

Thanks for all your help,


That’s incorrect. You can use “SetPreference:” (Scripting Reference - Audacity Manual)
For example, if you want to set 256 kbps CBR, you need to set:
Name=“FileFormats/MP3RateMode” Value=3
Name=“FileFormats/MP3Bitrate” Value=256

I’ve not checked the exact syntax (I don’t currently have mod-script-pipe installed), but I expect you can work it out from the above.
To see what preference “Name” options are available, look in your audacity.cfg file.