2

I use Audio Record to record audio and Media Codec to convert raw .WAV data buffer to Flac buffer. This Flac buffers are then written to a file which is not playable. As I looked at Flac file format, it requires file header and frame header/footer in order to be playable.

This is also the issue with other formats such as audio/mp4a-latm, audio/3gpp, audio/amr-wb (which are Android already support encoders)

For audio/mp4a-latm, I successfully add file header, frame header/footer by follow this SO. For Flac and other format, is there any wrapper/library to do this (rather than read long/complicated file format document)?

Community
  • 1
  • 1
Bao Le
  • 16,643
  • 9
  • 65
  • 68
  • Recently I used javaFlacEncoder and followed http://stackoverflow.com/questions/9733064/how-to-convert-the-wav-ogg-file-to-flac-file-in-android. I am able to successfully create flac in android. The file size is down to half from wav. – Geetha Nov 25 '15 at 23:27
  • This code is used to convert .wav file to .flac file. I'm looking for *frame* based converter. – Bao Le Nov 30 '15 at 09:06

0 Answers0