An inexpensive, easy-to-build sound level control
This circuit contains an audio amplifier capable of driving a speaker with circuitry that automatically maintains the same relative maximum output regardless of extreme levels that are occurring at the input. It does not “compress” the peaks, but simply “turns down the volume” as you would do with your volume control