The best way is to painstakingly go through using the Envelope Tool to adjust the volume up and down. http://manual.audacityteam.org/o/man/envelope_tool.html
If you want a quicker way, you could try this “Automatic Gain Control” plug-in effect: https://forum.audacityteam.org/t/agc-automatic-gain-control/26706/1