in reply to How to convert little endian to big endian

As you have a wave file, maybe you could simply use sox. It has several options (-L, -B, -x,...) to handle the endianness of in/output files.