将输入设置为默认音频设备(SetInputToDefaultAudioDevice()) [英] Set Input To Default Audio Device ( SetInputToDefaultAudioDevice() )

查看:955
本文介绍了将输入设置为默认音频设备(SetInputToDefaultAudioDevice())的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,
我需要有关此命令的帮助,我找不到修复方法.
这将是文本的识别声音.

问题:

Good day,
I need help with this command i cant find how repair it.
It would be a recognition voice to text.

Problem:

...
private SpeechRecognitionEngine _recognizer;

private void button1_Click(object sender, RoutedEventArgs e)
{
...

    _recognizer.SetInputToDefaultAudioDevice();// All works but here is problem.
...
}
...


-------
当我运行它时.

System.PlatformNotSupportedException

未安装识别器.

感谢您的帮助,对不起我的英语. :)


-------
When i run it.

System.PlatformNotSupportedException

No recognizer is installed.

Thanks for help and sorry for my English. :)

推荐答案

检查您的框架和平台是否受支持.在此处 [ ^ ]
Check your framework and your platform if it is supported. The requirements for this class can be seen here[^]


我有win7和.NET Framework4.我正在使用Visual Studio 2010,并且正在C#中进行编程.
I have win7 and .NET Framework 4. I am using Visual studio 2010 and i am programming in C#.


这篇关于将输入设置为默认音频设备(SetInputToDefaultAudioDevice())的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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