modify sound encoding method