WIndows.Media.SpeechRecognition并设置音频输入 [英] WIndows.Media.SpeechRecognition and Set an Audio Input
问题描述
我想为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屋!