One of options is to use SSM2166. It is special IC form Analog Devices for audio compression.
Example application here: https://www.muzique.com/ssm2166.htm
For more info go to www.analog.com.
It is possible that you can obtain it as a free sample. Check with Analog Devices ..