简体   繁体   English

在Web应用程序中使用Naudio .Net类库进行录音

[英]sound recording using Naudio .Net class library in web application

is it possible to record sound using Naudio ( https://naudio.codeplex.com/ ) .net class library in C# web application ?? 是否可以使用C#web应用程序中的Naudio( https://naudio.codeplex.com/ ).net类库来录制声音?

I have requirement to record sound (of users) in web application. 我要求在Web应用程序中录制(用户)声音。

Please let me know. 请告诉我。

Thanks 谢谢

It is not possible - c# is backend (works on server) application, while your website is frontend (works on client's machine). 这是不可能的 - c#是后端(适用于服务器)应用程序,而您的网站是前端(适用于客户端的计算机)。 Any ties between those two are cut after server sends rendered page to client. 在服务器将呈现的页面发送到客户端之后,这两者之间的任何关

The best you can get - do a recording using some sort of javascript library (though I am not sure, that those exist), and send the recorded file to server via AJAX or simple POST as a form's file element. 你可以得到最好的 - 使用某种javascript库进行录制(虽然我不确定,那些存在),并通过AJAX或简单的POST将录制的文件发送到服务器作为窗体的文件元素。

Oh, you could use flash/silverlight or something like that as well. 哦,你也可以使用flash / silverlight或类似的东西。 Might be even easier. 可能会更容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM