asp.net mvc中的录音机 [英] sound recorder in asp.net mvc

查看:122
本文介绍了asp.net mvc中的录音机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有asp.net mvc应用程序,它检查给定的歌曲(录制的歌曲样本)并给出它的名称。



我需要制作录音机将通过浏览器录制歌曲,并将其发送到我的应用程序和我的应用程序以返回歌曲的名称。



任何想法?

i have asp.net mvc app which check given song (recorded sample of song) and gives the name of it.

I need to make sound recorder which will record song via browser, and to send it to my app and my app to return the name of the song.

Any ideas ?

推荐答案

谷歌的javascript录音机。请记住,浏览器通常在沙盒环境中运行代码,并且访问客户端计算机硬件(包括麦克风(如果有))受到严格限制。默认情况下,您的代码无权访问它。你的代码中没有任何东西可以在没有使用干预的情况下启用它。
Google for "javascript sound recorder". Keep in mind that browsers typically run code in a sandbox environment and access to the client machine hardware, including the microphone (if there is one), is heavily restricted. By default, your code will not have access to it. There is nothing you can do in your code to enable it without use intervention.


第一个问题是完全不清楚的。 Gives then names可能是任何东西,但听起来你可能想要通过音频记录识别音乐片段并在某个假想的数据库中识别它。如果是这样,你需要明白它将是非常先进和复杂的技术,在某种意义上,它甚至根本不存在,至少不为公众所用。



录音机的问题是标准化问题,因为浏览器无法访问录音硬件,因为解决方案1向您解释。我不想讨论任何特定于操作系统的可能性,如ActiveX,这也是非常不安全的。除了输入完全标准化并在浏览器中根据W3标准实现之外,您不应尝试实现任何输入。 媒体捕获的标准目前才刚刚出现。请参阅:

http://www.w3.org/TR/html-media -capture [ ^ ],

http://www.w3.org/TR/webaudio [ ^ ]。



At同时,这个功能没有特别需要。逻辑思考:如果用户的系统配备了录音所需的一切,则没有什么能阻止此类用户在本地进行此录制,将记录保存在某个文件上,然后将该文件提交给服务器。 这是唯一实用的解决方案,所以我建议你这样做



这也是可能的(请不要冒犯,这是只是我的假设;我会很高兴,如果事实证明是错的),你真的不明白服务器和客户端部分在Web技术中做了什么。您提到过ASP.NET,它使用.NET来执行Windows音频录制。如果这是您的想法,请考虑一下:您希望在服务器端还是客户端实现它? .NET可以在服务器端运行,因此它可以录制什么音频:冷却系统的嗡嗡声? :-)

无论如何,为了你的安慰,我可以建议你一个更好的录音机,任何人都可以在Windows上录制音频,后者可以通过网页提交,如上所述:带声音激活的实用录音机 [ ^ ]。 :-)



与您制定的问题相比,有些东西真的需要音频捕获:交互式音频输入,例如我们可以使用的在音频聊天中,类似于Skype,但基于网络。还有许多其他应用程序。从你的问题的表述,我看不出你真的需要它。



-SA
First question is completely unclear. "Gives then name" could be anything, but it may sounds like you wanted to recognize the music piece by the audio record and identify it in some hypothetical database. If so, you need to understand that it would be extremely advanced and complicated technology, which is, in certain sense, does not even exist, at least not available to the general public.

The problem of sound recorder is a problem of standardization, because the browser gives you no access to sound recording hardware, as Solution 1 explains to you. I don't want to discuss any OS-specific possibilities like ActiveX, which is also extremely unsafe. You should not try to implement any input except the input fully standardized and implemented in the browser according W3 standards. The standards for media capture are presently only emerging. Please see:
http://www.w3.org/TR/html-media-capture[^],
http://www.w3.org/TR/webaudio[^].

At the same time, there is no a serious need in this feature. Think logically: if the user's system is equipped with everything which is needed for audio recording, nothing prevents such user from doing this recording locally, saving the record on some file and then submit the file to the server. This is the only practical solution, so I suggest you do it this way.

It's also possible (please, no offense, this is just my assumption; and I would be glad if it turns out to be wrong) that you don't really understand what server and client parts do in the Web technologies. You mentioned ASP.NET, which uses .NET which could be used to perform Windows audio recording. If this is the way you think, think at this: do you hope to implement it on the server side or client side? .NET works on the server side, so what audio it may record: the buzzing of cooling systems? :-)
Anyway, for your consolation, I can suggest you a better sound recorder anyone could use on Windows to record audio which could be latter submitted via a Web page, as I suggested above: Practical Sound Recorder with Sound Activation[^]. :-)

In contrast to the problem you formulated, there is something which will really need audio capture: interactive audio input, such as we could use, for example, in audio chats, similar to Skype, but Web-based. There are many other applications. From your formulation of your problem, I cannot see that you really need it.

—SA


这篇关于asp.net mvc中的录音机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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