SpeechRecognitionResult.GetAlternates始终只返回一个语音识别结果 [英] SpeechRecognitionResult.GetAlternates always return only one speech recognition result

查看:78
本文介绍了SpeechRecognitionResult.GetAlternates始终只返回一个语音识别结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在尝试使用 SpeechRecognitionResult.GetAlternates 来获取以下代码中的语音结果集合

 recognizer = new SpeechRecognizer(); 
recognizer.Grammars.AddGrammarFromPredefinedType(" grammar1",SpeechPredefinedGrammar.WebSearch);

SpeechRecognitionResult recoResult = await this.recognizer.RecognizeAsync();

IReadOnlyList< SpeechRecognitionResult> resultList = recoResult.GetAlternates(8);

问题是我总是收到识别结果。我希望得到更多的认可结果。



祝你好运


Vu The Huynh




解决方案


你是如何解决这个问题的?我有同样的问题...... :(


谢谢!


问候,


乔治


Hi everyone,

I am trying SpeechRecognitionResult.GetAlternates to get a collection of speech result in the following code

recognizer = new SpeechRecognizer();                
recognizer.Grammars.AddGrammarFromPredefinedType("grammar1", SpeechPredefinedGrammar.WebSearch);

SpeechRecognitionResult recoResult = await this.recognizer.RecognizeAsync();

IReadOnlyList<SpeechRecognitionResult> resultList = recoResult.GetAlternates(8);

The problem is that I always just receive a recognition result. I expect more results from a recognition.

Best regards

Vu The Huynh


解决方案

Hi,

How did you solve this issue? I have the same problem...:(

Thank you!

Regards,

George


这篇关于SpeechRecognitionResult.GetAlternates始终只返回一个语音识别结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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