byte[] to wav file
It would be great if you could tell me how I could save a byte[] to a wav file. Sometimes I need to set different开发者_StackOverflow samplerate, number of bits and channels.
Thanks for your help.
You have to set up the wav header data which contains info about sample rate, file size, sample size, stereo or mono etc. Then write the actual audio data. Then you just have to write it out as a binary file with '.wav' file extension.
精彩评论