[英]Merge two audio files(not concat) in Java(API)?
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.谢谢你的帮助。
This worked for me.这对我有用。 Use jresources.org to help you.使用 jresources.org 来帮助您。 You could use their example: http://www.jsresources.org/examples/MixingAudioInputStream.java.html .您可以使用他们的示例: 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.对于 org.tritonus.share.sampled.TConversionTool 包,如果您在使用他们的库时遇到问题,请下载他们的源代码( http://sourceforge.net/projects/tritonus/files/ ):它是开源的,并尝试使用它。 I tried it and it worked for me :D.我试过了,它对我有用:D。 I'm grateful for those guys!我很感谢那些人!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.