title: How to write FLAC files in java
body: <p>I have a requirement to write FLAC files in java. Earlier I was writing the audio input into a WAV file and then converting it to FLAC file using a external converter</p>
  
  <p>I was looking into JFlac to find any API through which I can write FLAC files. I found  that AudioFileFormat.TYPE in java supports only the following file formats - AIFC, AIFF, SND, AU, WAVE . </p>
  
  <p>I would like to have a method where I can capture the audio from the microphone and, using an API such as Audiosystem.write, write it to a FLAC file instead of WAV file. </p>
  
  <p>Please suggest a method or an API that can solve my problem.</p>