I would like to write the Wav file from byte array and I also want to split channels from the input wav file
The Java Sound API shows that you can record music from a TargetDataLine and as an example shows the data being written to a byte array. But writing this byte array out into its own file is fairly useless since it is not in the WAV file format and cannot be played in other applications.
How do I write sound files using the javax.sound.sampled package?
Writing file from
InputStream
toOutputStream
by reading bytes:And here are some already answered questions on splitting wav channels, may be of use:
I have used this in the past for going from Wav -> byte[] and byte[] -> Wav