system.speech.recognition

System.Speech recognition error

我只是一个虾纸丫 提交于 2019-12-24 18:09:04
问题 I am writing a speech recognition program using system.speech from MS. I have been going through the online tutorials and all the great info on StackOverflow however i seem to keep running into an issue where the recognizer seems to throw an error. Below is the code I am using (minus the grammar creation). Grammar grammarQuestionsSingle; Grammar grammarQuestionsShort; Grammar grammarQuestionsLong; Grammar grammarStatement; //Grammar grammarDeclarationShort; //Grammar grammarDeclarationLong;

System.Speech recognition error

橙三吉。 提交于 2019-12-24 18:08:02
问题 I am writing a speech recognition program using system.speech from MS. I have been going through the online tutorials and all the great info on StackOverflow however i seem to keep running into an issue where the recognizer seems to throw an error. Below is the code I am using (minus the grammar creation). Grammar grammarQuestionsSingle; Grammar grammarQuestionsShort; Grammar grammarQuestionsLong; Grammar grammarStatement; //Grammar grammarDeclarationShort; //Grammar grammarDeclarationLong;

Does Microsoft SAPI support speech recognition on offline mode just like system.speech api?

旧城冷巷雨未停 提交于 2019-12-11 12:02:37
问题 I have read official documentation of Microsoft SAPI but I couldn't find about whether the api can be used on offline mode or not. in there, they said that Microsoft SAPI is server based speech recognition api. So It seems like it doesn't support but I have to make sure. Can I use Microsoft SAPI on offline just like system.speech ? 回答1: That link does not say what you think it says. Both Microsoft.Speech.Recognition (server engine) and System.Speech.Recognition (desktop engine) run entirely

How to use windows speech synthesizer in ASP.NET MVC

这一生的挚爱 提交于 2019-12-10 10:41:36
问题 I tried to use the System.Speech class to generate speech in ASP.NET mvc application. [HttpPost] public ActionResult TTS(string text) { SpeechSynthesizer speechSynthesizer = new SpeechSynthesizer(); speechSynthesizer.Speak(text); return View(); } But it gives the following error. System.InvalidOperationException: 'An asynchronous operation cannot be Started at this time. Asynchronous operations may only be started within an asynchronous handler or module or during certain events in the Page

How to use windows speech synthesizer in ASP.NET MVC

落爺英雄遲暮 提交于 2019-12-06 05:03:25
I tried to use the System.Speech class to generate speech in ASP.NET mvc application. [HttpPost] public ActionResult TTS(string text) { SpeechSynthesizer speechSynthesizer = new SpeechSynthesizer(); speechSynthesizer.Speak(text); return View(); } But it gives the following error. System.InvalidOperationException: 'An asynchronous operation cannot be Started at this time. Asynchronous operations may only be started within an asynchronous handler or module or during certain events in the Page lifecycle. If this exception occurred while executing a Page, ensure that the Page is marked <%@ Page