WIndows.Media.SpeechRecognition并设置音频输入 [英] WIndows.Media.SpeechRecognition and Set an Audio Input

查看:321
本文介绍了WIndows.Media.SpeechRecognition并设置音频输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为SpeechRecognizer设置设备音频.

I want to set a device audio for my SpeechRecognizer.

今天,该api使用defaultInputDevice,我不知道如何解决此问题.

Today, the api takes the defaultInputDevice and i have no ideas to get around this problem.

您能帮我吗?

推荐答案

您好

Hi Yogoud,

>> WIndows.Media.SpeechRecognition并设置音频输入

配置音频输入

应用程序可以配置 SetInputToAudioStream(Stream,SpeechAudioFormatInfo) SetInputToWaveFile(String) SetInputToWaveStream(Stream) ,或 SetInputToDefaultAudioDevice() 方法.

Applications can configure a SpeechRecognitionEngine instance to receive input using any of the SetInputToAudioStream(Stream, SpeechAudioFormatInfo), SetInputToWaveFile(String), SetInputToWaveStream(Stream), or SetInputToDefaultAudioDevice() methods.

有关更多详细信息,您可以参考 https://msdn.microsoft.com/zh-CN/library/hh378436(v=office.14).aspx

For more details, you can refer to https://msdn.microsoft.com/en-us/library/hh378436(v=office.14).aspx

最诚挚的问候,

克里斯汀


这篇关于WIndows.Media.SpeechRecognition并设置音频输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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