I am developing a recording application containing the Pause / Play option.
I tried with both Media Recorder and AudioRecord
In the case of AudioRecord, the recorded sound consumes a larger size, therefore, if the recording size increases, say, for example: if I record a 1-minute sound, it consumes from 40 to 50 MB, it is very useful to combine it by converting it to. raw file and send to php server .
So, I tried with Media Recorder , it consumes less size , but cannot be combined with the previous method recorded in Audio Record.
The next step I tried using the Android NDK is very useful even for the setup process.
Now my question is what is the best way to combine recorded audio files
- Using Android NDk
- Reading byte data from audio and combining. If I use this, the problem with recording format headers says amr, wav, like this.
Also, if I try with this , I cannot get the javax.sound package, so I tried using plugins, but no luck ..
Please suggest a better way to do this. I also tried with all of these following links
Audio Link 1
Audio Link 2
Audio 3
Audio Link 4
Provide me with a good tutorial or samples or links. Thanks.
Venky
source share