两个音频文件的在线比较 [英] Online Comparison of Two Audio Files

查看:508
本文介绍了两个音频文件的在线比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我希望比较两个音频文件,我有我的Andr​​oid手机上,并且其中一个是完全一样的,我希望通过麦克风录制。

so i was hoping to compare two audio files, one I have on my android phone, and one which is the exact same that I wish to record through the microphone.

我觉得他们应该是相当的基础和足够的相似音频能够得到一个相当不错的比较,我不是太担心这里的精度,只要至少有一些。

I feel that they should be fairly basic and similar audio enough to be able to get a fairly good comparison, I'm not too worried about accuracy here as long as there is at least some.

像花一整天试图让我的Andr​​oid手机来录制wav文件是用的 musicg库,不能够弄清楚我已经看到了在这里轻松地左右记录一个可用的wav文件的所有例子。我希望有可能是某种类型的在线API或资源,我可以只需上传两个音频文件,并获得基于相似的值?

After spending like the whole day trying to get my android phone to record a wav file which is compatible with the musicg library and not being able to figure out all the examples I've seen on here about easily recording a usable wav file. I was hoping there might be some sort of online API or resource which I could just upload two audio files and obtain a value based on similarity?

我试着谷歌上搜索,但我只有拿出艺术家音乐分类比较,并希望这里有人可能知道的更多的东西?

I've tried googling but I only come up with artist music sort of comparisons and was hoping someone here might know of something more?

(请注意,我unforutnately不会靠近的时候我需要真正了解任何技术FFT或任何实现我自己的含量大约有)

(Please note, I unforutnately won't have anywhere near the amount of time I would need to actually understand any FFT techniques or anything to implement my own)

推荐答案

我的一个项目,我在谷歌也在寻求声音比较库,但力发现任何东西,幸运的是我发现了同样的musicg库,我用它在我的项目

One of my project I too search on Google for sound comparison libraries, but dint found anything and fortunately I found the same musicg library and I used it in my project.

但它给出了坚实听起来像门铃,喇叭,警报器等,并进行语音比较它不会给出任何预期的结果了良好的效果。

But it gives good results for solid sounds like door bell, horn, sirens etc and for voice comparing it wont gives any expected results.

这需要很多时间长大小的文件,但我的项目,所以我用了这个LIB是合适的。这里是样本code比较两个波形文件。

It takes much time for long size files but for my project this lib was suitable so I used it. here is sample code for comparing two wave files.

// create a wave object
Wave wave = new Wave(path1);
Wave wave1 = new Wave(path2);
FingerprintSimilarity fingerprintSimilarity = wave.getFingerprintSimilarity(wave1);
float score = fingerprintSimilarity.getScore();
float similarity = fingerprintSimilarity.getSimilarity();
Log.d("Similar sound :", "Score : " + score + "\n  Similarity : "+ similarity);

链接1
链接2

希望这将有所帮助。

这篇关于两个音频文件的在线比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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