You can try with the
compand command of
sox
You can see some samples of that command in
https://forum.doom9.org/showthread.p...165#post779165
Don't work fine with avisynth soxfilter but you can try with sox command line.
Remember than Dolby Compression curves are based in normalized dialog (at -31 dB, for that the Null Band preserved), but not all sources are compliant with that and the output can't be like desired.
The Dolby recomendations (Dialog Normalization, DRC system) are good if all sources respect them, but there are many sources with high volume (TV commercials,
Loudness war, ...) and you need turn up the volume always with Dolby compliant sources.