RxAndroidAudio icon indicating copy to clipboard operation
RxAndroidAudio copied to clipboard

How to record in ogg?

Open wajidp opened this issue 7 years ago • 2 comments

Can i record in ogg i tried and it says error code 2

mAudioFile = new File( prdir.getAbsolutePath() + File.separator + System.nanoTime() + ".webm"); return mAudioRecorder.prepareRecord(MediaRecorder.AudioSource.MIC, MediaRecorder.OutputFormat.WEBM, MediaRecorder.AudioEncoder.VORBIS, 192000, 192000, mAudioFile);

wajidp avatar May 22 '17 06:05 wajidp

Sorry for the late response, I think its the encoder format, you can try with the Android MediaRecorder API to record ogg file, then use parameters here.

Piasy avatar Jun 04 '17 08:06 Piasy

How to record in wav

MarsDiplomatToEarth avatar Mar 14 '20 09:03 MarsDiplomatToEarth