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

前端 未结 2 798
有刺的猬
有刺的猬 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条回答
  • 2020-12-05 12:48

    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.

    0 讨论(0)
  • 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!

    0 讨论(0)
提交回复
热议问题