A speech enhancement algorithm to reduce noise and compensate for partial masking effect