The easiest way to implement audio compression is to start with a ready made solution. Audio IC's have included EQ, Noise Gate, Compression, filtering since the what the late 1970's early 1980's? Think about compact cassette players with all the Dolby and other filtering, compression, EQ...