kailash09dabhi / OmRecorder

A Simple Pcm / Wav audio recorder with nice api. https://play.google.com/store/apps/details?id=com.kingbull.omrecorder
Apache License 2.0
684 stars 121 forks source link

how to add mp3 type #31

Closed wohsj110 closed 6 years ago

wohsj110 commented 6 years ago

i dont know how to extend an mp3 type ,and there is is bug while recording over 8 hours ,it just only can record 2hours totaly ,but the audio file size is increase approximate 5.5Gb

kailash09dabhi commented 6 years ago

Recording time depends on how you have implemented the library. You should go with background service to record. About Mp3:- You can use mp3lame library to encode the raw bytes to mp3 format.

You can check this app where i have used omrecorder library and encoded bytes to mp3 using lamemp3 library (http://lame.sourceforge.net/)

wohsj110 commented 6 years ago

Thank you for your help. So kind of you Kailash Dabhi notifications@github.com于2017年11月6日 周一下午11:28写道:

Closed #31 https://github.com/kailash09dabhi/OmRecorder/issues/31.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kailash09dabhi/OmRecorder/issues/31#event-1327808174, or mute the thread https://github.com/notifications/unsubscribe-auth/AJXMOm99gzZzZghG2_HERkrptbUnvLr0ks5szyWYgaJpZM4QSW3O .

-- 但行好事,莫问前程

rushabh1191 commented 6 years ago

Can you share the code snippet of write action, which converts wav to mp3 with Lame, I am trying to do that but it's not happening.