E&D:1.opt the code
2.Encode input and decode output can support wav format