7

I need to merge two audio files together. Basically place one audio file on top of another and make one file. I have seen some posts on concatenating two audio files, but none on this. Thanks for any help.

peterh
  • 11,875
  • 18
  • 85
  • 108
Drew H
  • 4,699
  • 9
  • 57
  • 90

2 Answers2

2

I recommend you take a look at JSyn. I would discourage you to attempt to do it yourself, since it can get complicated with multiple audio formats. It supports a lot more as well.

Neil
  • 5,762
  • 24
  • 36
0

This worked for me. Use jresources.org to help you. You could use their example: http://www.jsresources.org/examples/MixingAudioInputStream.java.html. For the org.tritonus.share.sampled.TConversionTool package, if you have problems using their library, then download their source code (http://sourceforge.net/projects/tritonus/files/): it's open source, and try using it. I tried it and it worked for me :D. I'm grateful for those guys!

Winnifred
  • 1,202
  • 1
  • 8
  • 10