Pages

Tuesday, 13 August 2013

Android how to mix 2 wav audio?

Basic steps to mix 2 wav files.
  • just take byte[] (or amplitude array is also good) and from both file..
  • calculate average of every byte and prepare new array
  • make wave header and set new file's header
  • then write byte array to new file
  • then try to play using MediaPlayer (MediaPlayer will give great result when play sound then audio track)
Click here to download demo.
Following are condition in above demo.You can change them as per requirement.

Low Song format must have
we have to upload song in WAV format with following values.

song formats in demo are 
1.  Format 1 param : 
     Freq : 11.025 kHz,
     bit per sample :  8 Bit,
     channel mode :  Mono

2.  Format 2 param : 
     Freq : 44100 kHz,
     bit per sample :  8 Bit,
     channel mode :  Mono


How to convert mp3 to wav with different options :
These can be done using Free software. 
Software Download url : http://www.koyotesoft.com/audio-software/free-mp3-wma-converter.html

No comments :

Post a Comment