Tuesday, 15 September 2015

android - How to mix / overlay two mp3 audio file into one mp3 file (not concatenate) -


I want to merge two MP3 files into one mp3 file. For example if 1 file is 1min and the second file is 30 seconds the output should be one minute that should play both files in one minute.

First of all, In order to manipulate two raw presentations, you need two audio files Join ; Since An MP3 file is compressed , you do not have direct access to the raw representation of the signal. You need to decode the compressed MP3 stream to "understand" the waveform form of your audio signal and then you will be able to blend them.

In this way, two compressed audio files need a single compressed audio file, the following steps:

  1. To get raw data, use a decoder to compress the file Decode ( No Public System APIs Available This is what you need to do manually! ).
  2. mix two raw uncompressed data stream ( audio clipping if necessary) For this, you need to get raw data format into your compressed MP3 file with raw emixed data with your decoder ()
  3. encoded (As decoder copy, you need to manually use it encoder )

    More information can get aboud MP3 decoder.

No comments:

Post a Comment