7

I am developing Recording App that includes Pause/Play option.

I tried with both Media Recorder and AudioRecord

In case of AudioRecord , the recorded audio consumes larger size, so if the recording size increases say for eg: if i record 1 min audio it consumes 40 to 50MB an it really paining to combine by converting it to .raw file and send to php server.

So i tried with Media Recorder, it consumes less size,but not able to combine using the previous way handled in Audio Record.

Next step i tried with Android NDK- really paining for even Set up process.

Now my question is that which is the best way to combine recorded audio files

  1. Using Android NDk
  2. Reading the byte data from Audio and combining -If i use this there is problem with Headers of Recording format say amr,wav like that.

Also if i try with this , i am not able to get javax.sound package , So i tried with Plugins but no luck..

Please Suggest best way to do this. Also i tried with all this following links

Audio Link 1

Audio Link 2

Audio Link 3

Audio Link 4

Provide me Good tutorial or samples or links.Thanks.

Community
  • 1
  • 1
Venky
  • 11,049
  • 5
  • 49
  • 66
  • For small audio files I would just use SoundPool but for large files that need paused and resumed have you looked at MediaPlayer? – Chris Nov 23 '11 at 15:59
  • Check my question correctly, i am asking for Audio recording and not for Media Player – Venky Nov 23 '11 at 16:52
  • Hi,please me to develp native C++ code using the NDK for audio combine. i am using media recording and MPEG-4 file format. please help me. – M.A.Murali Jun 22 '12 at 09:54

1 Answers1

1

For something like this your best bet would be to develop native C++ code using the NDK.

Kevin Parker
  • 16,975
  • 20
  • 76
  • 105
  • Hi,please me to develp native C++ code using the NDK for audio combine. i am using media recording and MPEG-4 file format. please help me. – M.A.Murali Jun 22 '12 at 09:55
  • i have tried convert second MP4 audio files to byte array and append it in to first mp4 audio file ,i get a combined audio file but the combined file does not play second audio but file size is increased. – M.A.Murali Jun 23 '12 at 05:27
  • 1
    You can use [mp4parser](http://mp4parser.googlecode.com) to combine MP4 files of the same type without using native libs. AppendExample will do. – Sebastian Annies Jul 20 '12 at 21:31