Search code examples
javaaudiooggoggvorbis

How to encode the real time audio?


I am on creating voice report. The user has to submit his voice report and it should simultaneously encode the audio data using Vorbis encoder. Its working fine but encoding will start after the recording is over.

But I should have to employ the Vorbis encoder on the fly. Please share any sample code it would be much helpful.


Solution

  • Be more specific about how you record the audio. Do you just get the wav file or you get chunks of data? If latter, why don't you just feed it to the encoder in real time?