抛出System.InvalidOperationException的Microsoft.Speech SpeechRecognitionEngine.setInputToDefaultAudioDevice()方法 [英] Microsoft.Speech SpeechRecognitionEngine.setInputToDefaultAudioDevice() method throwing System.InvalidOperationException

查看:87
本文介绍了抛出System.InvalidOperationException的Microsoft.Speech SpeechRecognitionEngine.setInputToDefaultAudioDevice()方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Microsoft.Speech (不是System.Speech!),我正在尝试将音频流的输入设置为我的麦克风,这是默认的音频设备,但会引发异常:

I'm using Microsoft.Speech (NOT System.Speech!) and I'm trying to set the input of the audio stream to my microphone, which is the default audio device, but it is throwing the exception:

'System.InvalidOperationException' occurred in Microsoft.Speech.dll but was not handled in user code

Additional information: Cannot find the requested data item, such as a data key or value.

这只是一个测试,理想情况下,我想将音频流设置为扬声器,但是,如果我可以使用它,则可以使用虚拟音频设备软件插入麦克风流.如果任何人也可以直接将音频流设置到扬声器,那 会很完美.

This was just a test, ideally I want to set the audio stream to my speakers, but if I can get this to work I can just use a virtual audio device software to plug into the mic stream. If anyone can also set the audio stream to the speakers directly, that would be perfect.

感谢您的帮助!

推荐答案

您好,

请参考下面的链接

http://stackoverflow.com/questions/17937305/speech-recognition-engine-does-not-shut-down-invalid-operation-exception

http://stackoverflow.com/questions/17937305/speech-recognition-engine-does-not-shut-down-invalid-operation-exception

http://stackoverflow.com/questions/25461949/microsoft-speech-system-speech-problems

http://stackoverflow.com/questions/25461949/microsoft-speech-system-speech-problems

这是问题的解决方法

欢呼

Dinesh


这篇关于抛出System.InvalidOperationException的Microsoft.Speech SpeechRecognitionEngine.setInputToDefaultAudioDevice()方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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