I have a requirement to write FLAC files in java. Earlier, I wrote an audio input to a WAV file, and then converted it to a FLAC file using an external converter
I searched JFlac to find any API through which I can write FLAC files. I found that AudioFileFormat.TYPE in java only supports the following file formats: AIFC, AIFF, SND, AU, WAVE.
I would like to have a method where I can capture audio from a microphone and, using an API such as Audiosystem.write, write it to a FLAC file instead of a WAV file.
Please suggest a method or API that can solve my problem.
source share