What component should I use? H-bridge? Relay?
You could use three DPDT relays to get 4 sound levels on two channels: 







simulate this circuit &ndash; Schematic created using CircuitLab

I don't expect you'd be able to get it to respond fast enough to protect hearing in something like a shooting range though. It might be okay for something like an aircraft mechanic.