【问题标题】:AudioException was unhandled / Audio device error in speech recognition programAudioException 未处理/语音识别程序中的音频设备错误
【发布时间】:2014-06-14 17:10:47
【问题描述】:

我正在使用 c sharp 开发一个语音识别软件,我遇到了这个问题,我在谷歌上搜索了它,但没有找到任何解决方案,还在 msdn 中发布了这个问题,但似乎没有人提供帮助,我还重新安装了我的音频设备驱动程序,它是更新版本,我有 Sony vaio fit 15218sgw,它是 realtek 音频设备,我使用的是 Visual Studio 2013,第 171,172,173 行的代码是

case "who is your daddy":
                    Nevan.Speak("I dont have a daddy");
                    break;

)

错误: System.Speech.Internal.Synthesis.AudioException 未被用户代码处理
HResult=-2146233088
消息=遇到音频设备错误。 - 错误代码:0x4
源 = System.Speech 堆栈跟踪: 在 System.Speech.Internal.Synthesis.VoiceSynthesis.Speak(提示提示) 在 System.Speech.Synthesis.SpeechSynthesizer.Speak(提示提示) 在 System.Speech.Synthesis.SpeechSynthesizer.Speak(字符串 textToSpeak) 在 c:\Users\Shehroz\Documents\Visual Studio 2013\Projects\Nevan\Nevan\Form1.cs:line 172 中的 Nevan.Form1._recognizer_SpeechRecognized(Object sender,SpeechRecognizedEventArgs e) 在 System.Speech.Recognition.SpeechRecognitionEngine.SpeechRecognizedProxy(对象发送者,SpeechRecognizedEventArgs e) 内部异常:

【问题讨论】:

  • 看起来像是驱动程序问题,或者更糟糕的是,是硬件问题。不确定我们能做些什么。

标签: c# speech-recognition text-to-speech speech speech-synthesis


【解决方案1】:

试试这个: speechSynthesizer.Speak("I dont have a daddy");

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-11-05
    • 2012-05-21
    • 2010-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多