Java uses IO stream to cut and splice audio
•
Java
Requirements: use the IO stream to cut the climax parts of several audio files in the specified directory and re splice them into a new audio file
Train of thought (take two songs as an example):
The first song has an input stream object bis1. The second song has an input stream object bis2, which shares an output stream object BOS (select the one with boolean type parameters when selecting the construction method). After the first song is cut, the "climax" of the second song is added on this basis.
Implementation code:
How to obtain audio file bit rate:
Operation results:
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码