如何用Java处理声音?
我必须用 Java 实现 LPC(线性预测编码)算法,坦白说,我不知道从哪里开始。有人可以指出我正确的方向吗?我不能。当然,使用 java sound api 中已经实现的算法(如果它提供了解决方案)。
I have to implement the LPC (linear predictive coding) Algorithm with Java and quiet frankly don't have a clue where to start. Could someone please point me into a right direction.. I can't. of course, use already implemented algorithms from the java sound api (if its provides a solution).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Java 带有 AudioInputStream。
您可以通过调用 avax.sound.sampled.AudioSystem.getAudioInputStream(File f) 来获取 inputStream。
AudioInputStream 有一个 read() 方法来读取数据。也许,您会想要读取所有数据,对其执行某些操作并将其存储回文件中......
Java comes with an AudioInputStream.
You can get the inputStream by calling avax.sound.sampled.AudioSystem.getAudioInputStream(File f).
The AudioInputStream has a read() method which reads the data. Probably, you will want to read all the data, do something with it and store it back to a file...