在Java程序中嵌入JAUDIO包 [英] Embedding JAudio package in java program

查看:206
本文介绍了在Java程序中嵌入JAUDIO包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的家伙,结果
我做的基于内容的音乐分析(音乐类型分类和相似性措施)如何提高媒体播放器的随机播放功能的选歌最后一年的项目(理学士)。
我想嵌入JAUDIO进行特征提取。我从网上下载包:sourceforge.net/projects/jaudio/和我使用的 HTTP所示的指令://jaudio.sourceforge.net/jaudio10/embedding.html 。不过,我遇到了几个问题:

Yeah Guys;
I am doing a final year project (BSc) on how Content Based music analysis (Music Genre classification and similarity measures) can improve the song selection of Media player’s shuffle function. I would like to embed JAudio to perform the Feature Extraction. I downloaded the package from: sourceforge.net/projects/jaudio/ and I am using the instruction illustrated at http://jaudio.sourceforge.net/jaudio10/embedding.html . However, I am encountering a few problems:


  1. 使用类批处理指令说使用
    setFeatures(java.io.File中的[]文件)或setFetaures(RecordingInfo []
    文件)。然而,根据在API
    http://jaudio.sourceforge.net/jaudio10/javadoc/index.html
    没有这样的方法。

  2. 下一步是Batch.exectue()。然而,这将引发空指针异常。

  3. 此外,当我尝试使用的图形用户界面,文件选择器(添加录音)不会加载该文件(一个.wav)

我真的想在我的项目中使用JAUDIO。但是,由于上述原因,我不能。首先,我想知道,如果任何人试图嵌入JAUDIO和有同样的问题。如果没有,没有人知道包的替代方案,提取类似功能的?

I would really like to use JAudio in my project. However, because of the above reasons I am not able to. Firstly, I was wondering if Any one had tried embedding JAudio and had the same problem.If not, does anyone know of an alternative program of package that extracts similar features?

我会感谢你提前为您的帮助。

I would to thank you in advance for your help.

推荐答案

为了增加录音,你应该使用-Xmx放大JVM内存JAUDIO可以使用。
我几个月前遇到了同样的问题,似乎科里·麦凯没有提供API,用于读取embedding.I JAUDIO源$ C ​​$ c和我发现,它不是那么难于理解,你可以试试。

In order to add recordings, you should use -Xmx to enlarge the JVM memory that jAudio can use. I encountered the same question several months ago, it seems Cory Mckay does not provide API for embedding.I read the source code of jAudio and I found that it's not so hard to understand, you can have a try.

这篇关于在Java程序中嵌入JAUDIO包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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