Android的声音验证 [英] Android Sound Verification

查看:143
本文介绍了Android的声音验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个应用程序,它会回应的拍手的声音。

I would like to create an application, which will response on "Clap" sound.

意味着,如果我遵守了我的移动某处在我的房间,如果一拍就开始响了。

Means, if I have kept my mobile somewhere in my room, and if a clap it will start ringing.

我想知道我可以比较两个声音[鼓掌的声音传入]和已经存储拍手的声音?

I would like to know how can I compare two sound [incoming sound of clap] and already stored clap sound?

我想我需要创建将继续通过手机话筒监听服务,并检查传入的声音。

I think I need to create a service which will keep on listening through mobile Microphone, and check for incoming sound.

[如果你认为任何其他方式为这个应用程序是很好/较好的话,请建议也。] 请你们任何指针或任何帮助将是非常美联社preciated。

[If you think any other approach for this application is good/better then please suggest that also.] Please guys any pointer or any help will be very much appreciated.

感谢您的快速反应。

因为我有创建一个服务,将来自麦克风,哪个类,我应该用它来记录声音MediaRecorder / AudioRecord连续录制声音。

As i have create a service which will continuously record sound from Mic, which class should i use to record the sound MediaRecorder / AudioRecord .

其他的要求是一样的用户可以记录自己定制的音乐也找到他们的电话。 因此,对于如:如果用户记录了一些随机的声音,这将被存储在应用程序

Other requirement is like user can record their own custom music also, to find their phone. So for eg: if user records some random sound, which will be stored in application.

现在再一次​​用户播放同样的声音,找到自己的手机,那么我将如何比较当前播放的声音,previously存储的声音?

Now once again user plays the same sound, to find their phone, then how will i compare currently played sound with previously stored sound ?

问候。

推荐答案

您可能需要考虑的东西就投入像傅立叶变换。如果你想从另一个区分一个声音,不是你真正需要分析声音的频率内容,而不是它的幅度。然后,您可以通过识别不同频率峰值振幅做一些匹配,尝试从另一个区分一个声音。

You probably need to look into something like Fourier Transform on the inputs. If you're trying to differentiate one sound from another, than you really need to analyze the frequency content of the sound, and not its amplitude. Then you can do some kind of matching by identifying the amplitude of the different frequency peaks, to try to differentiate one sound from another.

这篇关于Android的声音验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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