写一个程序,识别声音和动作执行 [英] Write a Program Which Recognizes a Sound and Performs Action

查看:230
本文介绍了写一个程序,识别声音和动作执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个程序,它能够存储声音模式,如火车汽笛,喇叭(嘟嘟)...监听通过麦克风的声音......然后采取一些行动的时候听到声音。我知道一点Python和VB中已设定在很久以前。主要是我是一个Oracle,PLSQL的家伙。该计划将需要适度的UI。

I would like to write a program which is capable of storing a sound pattern, such as a train whistle, horn (beep beep)...listening for the sound via the microphone...and then taking some action when the sound is heard. I know a little python and have programmed a long time ago in VB. Mainly I am an Oracle, PLSQL guy. The program will require a modest UI.

什么是最好的解决方案组合(语言,第三方插件等)来解决这个问题?

What is the best solution combination (language, third party add-ons etc..) to tackle this problem?

推荐答案

我的猜测是阻力最小的在这种情况下,路径是结合使用第三方音频识别库高级语言(如Java或.NET家族语言,如一个C#或VB.NET)。

My guess is that the path of least resistance in this case is to use a third-party audio recognition library in combination with a high level language (such as Java or one of the .NET family languages such as C# or VB.NET).

您可以通过在数字声音处理和音频识别做一些研究启动

You can start by doing some research in the areas of Digital Sound Processing and Audio Recognition.

当你发现你所选择的语言库或框架,有你感兴趣的功能,和绑定,开始使用它实现。

When you find a library or framework that has the capabilities you're interested in, and bindings in your language of choice, start implementing with it.

请参阅 MARF (一个Java库),也许微软在这方面的工作在枝条的 System.Speech.Recognition 命名空间(它如果我没记错已经集成了较新的Windows操作系统)

See MARF (a Java library) and maybe Microsoft's work in this area withe the System.Speech.Recognition namespace (which if I remember correctly has been integrated with the newer Windows operating systems)

编辑 - 桌面与运行从网络

在你问为了使用Flash或Silverlight为您的解决方案能够在桌面上或从网站都工作的意见。

In the comments you asked about using Flash or Silverlight in order for your solution to be able to work both on the Desktop or from the web.

首先,我想指出的是,Flash和Silverlight的客户端计算机上实际运行。不同的是,它们在Web浏览器的上下文中运行,并且用户不必安装应用程序。否则,它们并不比桌面应用太大的不同,并且用户显然必须具有的插件安装在浏览器中的Silverlight闪存

First off, I would like to point out that both Flash and Silverlight actually run on the client computer. The difference is that they run in the context of a web browser, and that the user doesn't have to install the application. Otherwise they are not much different than a desktop application, and the user obviously has to have the Flash of Silverlight plugin installed for their browser.

如果这就是你以后(即用户不必安装应用程序),比你可以看看到Flash,Silverlight的或的 Java Web Start的。其实Java Web Start的可能会是一个很好的选择,因为你可以利用 MARF框架

If that's what you're after (i.e. the user to not have to install your application) than you can look into Flash, Silverlight or Java Web Start. Actually JAVA Web Start would probably be a good candidate because you could leverage the MARF framework.

不过,如果你决定去与Flash,Silverlight或Java Web Start的有,你可能要处理,因为访问客户端系统资源,势必一些安全问题需要一些特权,多数基于Web的应用程序通常不要求

However if you do decide to go with Flash, Silverlight, or Java Web Start there are some security issues that you might have to deal with because accessing client system resources is bound to require some privileges that most "web-based apps" don't typically require.

这篇关于写一个程序,识别声音和动作执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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