不知道怎么实现asp.net(C#)上的语音识别 网页形式在winform上可以识别  现在要转成asp.net的  就不能识别了  又谁做过这方面的  麻烦告诉我一下大家进来讨论一下

解决方案 »

  1.   

    你要理解一点:asp.net应用程序是运行在服务器上而不是客户端的!
      

  2.   

    应该是权限问题吧,楼主是要在客户端录入声音吗?你可以在网页中嵌入winform用户控件来实现,关键问题就是需要客户端赋予相应的权限才行。
      

  3.   

    客户端如何获得音频输入?这个要Activex吧
    剩下就是如何传输,最后才是在服务端分析。
      

  4.   

    是用这个 speech application SDK 1.1   不过  我不知道这个SDK怎么  在winform里我已经实现了语音识别  不过转到asp.net就不好用了。下面是我的一部分代码 大家帮这看看public void ContexRecognition(int StreamNumber, object StreamPosition, SpeechLib.SpeechRecognitionType RecognitionType, SpeechLib.ISpeechRecoResult Result)
    {
    string strText = string.Empty;
    strText = Result.PhraseInfo.GetText(0, -1, true);
    //txtSpeakText.SelectionStart = m_cChars;
    txtSpeakText.Text = strText + " ";
    if (_Default.sText == string.Empty)
    {
    if (strText != string.Empty)
    {
    _Default.sText += strText;
    m_cChars = m_cChars + 1 + strText.Length;
    }
    }
    }