...The only way (that i have found until now in b4a) to record pure wav audio is Stevel05's AudioRecord library. With short wavs Audiorecord works fine and is easy to use. Things get a little bit more complicated, when it comes to recording long wav files (threading required)...:
For the AudioRecorder, i'm using the MediaRecorder interface.
You should take a look here:
MediaRecorder | Android Developers
B4X:public void setOutputFormat (int output_format) Since: API Level 1 Sets the format of the output file produced during recording. Call this after setAudioSource()/setVideoSource() but before prepare(). It is recommended to always use 3GP format when using the H.263 video encoder and AMR audio encoder. Using an MPEG-4 container format may confuse some desktop players.
So indeed, mp3 is not supported by this library.
Hey Highwinder,
I have updated the library to Version 2.10.
Not many changes has been made, but it should be easier to create the output file. (It does work for me.)
Tomas
AR.MaxDuration = 10000
Log(AR.isRecording)
AR.AudioSource = AR.AS_MIC
AR.OutputFormat = AR.OF_THREE_GPP
AR.AudioEncoder = AR.AE_AMR_NB
DateTime.DateFormat = "yyMMddHHmmss"
AR.setOutputFile(File.DirRootExternal,"/Recordings/"& DateTime.date(DateTime.now) & ".wav")
AR.prepare
AR.start
AR.AudioSource = AR.AS_VOICE_CALL
they're not able to open... any ideas why?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?