compression of sound



hello,
please anyone can provide me a code for compression a
signal of sound .
if there is no function was built . can you provide me a
code ?
with my regards,huda
.