RecognizeOnceAsync() 将意向识别作为异步操作启动语音识别。 RecognizeOnceAsync(String) 执行意向识别,并从传入的文本生成结果。 这对于测试以及语音输入未绑定到 IntentRecognizer 的其他时间非常有用。注意:意向服务当前不支持此功能,因此它仅对脱机模式匹配或完全匹配意向有效。Recognize...
Found workaround It should be noted that if I add 1 second delays betweenrecognizeOnceAsync().get()calls the program completes okay, but segmentation of recognition results is affected. Moreover such delays are not welcome in our environment. Logs:speech.delayed.log Additional details The setup ...
public System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.SpeechRecognitionResult> RecognizeOnceAsync(); 返回 Task<SpeechRecognitionResult> 表示识别操作的任务。 该任务返回的值为 SpeechRecognitionResult 示例 以下示例创建语音识别器,然后获取并打印识别结果。 C# 复制 public as...
关键字 (keyword) 识别会话持续到识别第一个关键字 (keyword) 或调用 StopRecognitionAsync 为止。 识别关键字 (keyword) 时,将触发“已识别”事件并完成任务。 若要检测另一个关键字 (keyword) ,请再次调用 方法。 如果在输入中未检测到关键字 (keyword) ,除非调用 ,否则StopRecognitionAsync(...
RecognizeOnceAsync(SpeakerIdentificationModel) 将说话人识别模型中的说话人标识为异步操作。 RecognizeOnceAsync(SpeakerVerificationModel) 将说话人验证模型中的说话人验证为异步操作。 RecognizeOnceAsync(SpeakerIdentificationModel) 将说话人识别模型中的说话人标识为异步操作。 C# 复制 public System.Threadin...
public System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.SpeechRecognitionResult> RecognizeOnceAsync(); 返回 Task<SpeechRecognitionResult> 表示识别操作的任务。 任务返回值 SpeechRecognitionResult 示例 以下示例创建源语言识别器,然后获取并打印识别结果。 C# 复制 public a...
RecognizeOnceAsync 方法 参考 反馈 定义 命名空间: Microsoft.CognitiveServices.Speech.Translation 程序集: Microsoft.CognitiveServices.Speech.csharp.dll 包: Microsoft.CognitiveServices.Speech v1.34.0 以异步操作的形式启动语音翻译。 C# 复制 public System.Threading.Tasks.Task<Microsoft.C...
public System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.KeywordRecognitionResult> RecognizeOnceAsync(Microsoft.CognitiveServices.Speech.KeywordRecognitionModel model); Parameters model KeywordRecognitionModel The KeywordRecognitionModel that describes the keyword we want to detect....
public System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.Translation.TranslationRecognitionResult> RecognizeOnceAsync(); Returns Task<TranslationRecognitionResult> A task representing the recognition operation. The task returns a value of...
running multi-utterance recognition,// use StartContinuousRecognitionAsync() instead.varresult =awaitrecognizer.RecognizeOnceAsync();if(result.Reason == ResultReason.TranslatedSpeech) { Console.WriteLine($"\nFinal result: Reason:{result.Reason.ToString()}, recognized text:{result.Text...