How to convert dss and ds2 files programatically and play those converted files in all the browsers

I need to convert dss and ds2 files to wav format programatically and after converting those files to wav format i should be able to play those wav files in chrome and firefox browser.I tried but i could not find the code for converting dss and ds2 files to wav format.Can anyone help me out.