语音指令 [英] Speech Commands

查看:134
本文介绍了语音指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.我想知道是否存在使用语音命令启用和禁用语音识别的方法.例如;

Hello. I was wondering if there was a way to enable and disable voice recognition using voice commands. For Example;

case "Start Listening": synthesizer.speakasync("I am listening"); recEngine.RecognizeAsync(RecognizeMode.Multiple); break; case "Stop Listening": synthesizer.speakasync("Call me back when your ready"); recEngine.RecognizeAsyncStop(); break;

我不想这样做,但是我意识到,一旦它停止监听,那么我将不得不重新启动该程序.有没有办法让我停止收听,直到听到开始收听"命令?我一直在努力弄清楚 好几天了,我什么也没有.请帮忙.

I wan't to do this but I realized that once it stopped listening then I would have to restart the program again. Is there a way that I can make it stop listening until it hears the command "Start Listening"? I have been trying to figure it out for days and i'm getting no where. Please help.

推荐答案

您可以将Recognize放在_recognizer_SpeechRecognized这样的方法中,并标记一个不调用该方法的标志.

You can put your Recognize in a method like _recognizer_SpeechRecognized and put a flag not to call that method.

http://www.codeproject.com /Articles/483347/语音识别语音到文本文本语音到a

chanmm


这篇关于语音指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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