Merge two audio files(not concat) in Java(API)?

前端 未结 2 807
有刺的猬
有刺的猬 2020-12-05 12:36

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 no

2条回答
  •  Happy的楠姐
    2020-12-05 12:52

    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!

提交回复
热议问题