用Java读取wav文件 [英] Reading wav file in Java

查看:75
本文介绍了用Java读取wav文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用 Java 读取 wav 文件,我打算用 K-means 对它们进行分类.

I want to read wav files in Java and I am going to classify them with K-means.

我如何在 Java 中读取 wav 文件并将它们分配到一个数组或类似的东西中(您可以提出建议)以对它们进行分类?

How can I read wav files in Java and assign them into an array or something like that(you can suggest ideas for it) to classify them?

我想使用 API 来读取 wav 文件和 K-means.

I want to use APIs for reading wav files and for K-means.

推荐答案

官方 Java Sound Programmer Guide 介绍了 阅读编写 音频文件.

The official Java Sound Programmer Guide walks through reading and writing audio files.

A Greensted 的这篇文章:在 Java 中读写 Wav 文件应该有帮助.WavFile 类非常有用,可以对其进行调整以返回整个数据数组而不是缓冲片段.

This article by A Greensted: Reading and Writing Wav Files in java should be helpful. The WavFile class is very useful and it can be tweaked to return the entire data array instead of buffered fragments.

这篇关于用Java读取wav文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆