如何使用asp.net在Web应用程序中录制语音。请建议。 [英] How to record voice in web application using asp.net. Please suggest.

查看:61
本文介绍了如何使用asp.net在Web应用程序中录制语音。请建议。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Asp.Net在Web应用程序中录制语音。请建议。



我尝试了什么:



i尝试使用Microsoft.VisualBasic.Devices;使用Microsoft.VisualBasic;使用system.Runtime.InteropServices;但它不能正常工作。

How to Record voice in web application using Asp.Net. Please suggest.

What I have tried:

i tried using using Microsoft.VisualBasic.Devices;using Microsoft.VisualBasic;using system.Runtime.InteropServices; but its not working properly.

推荐答案

你不能。

C#是一种服务器端语言,它不能在客户端 - 因此无法直接访问客户端硬件,包括麦克风。

要做到这一点,您需要在客户端上运行并可以访问硬件的东西 - 这意味着您几乎需要Flash(是的),Silverlight或HTML5。并且很有可能在所有平台上都不能很好地工作(如果有的话)。但是...... html5录音 - Google搜索 [ ^ ]可能有帮助。
You can't.
C# is a Server side language, it doesn't run on the client - so it has no direct access to client hardware, including the microphone.
To do this you need something that runs on the client and can access the hardware - which means you are pretty much going to need Flash (yeuch), Silverlight, or HTML5. And there is a good chance that this won't work well (if at all) across all platforms. But... html5 audio recording - Google Search[^] may help.


这篇关于如何使用asp.net在Web应用程序中录制语音。请建议。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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