add method to compress wav