<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>MSSpeech Forum : Action after recognizing a command</title>
  <link>https://www.msspeech-forum.com/</link>
  <description><![CDATA[This is an XML content feed of; MSSpeech Forum : New Users &amp; General Questions : Action after recognizing a command]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 19:41:34 +0000</pubDate>
  <lastBuildDate>Thu, 04 Mar 2010 10:50:28 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.02</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.msspeech-forum.com/RSS_post_feed.asp?TID=167</WebWizForums:feedURL>
  <image>
   <title><![CDATA[MSSpeech Forum]]></title>
   <url>https://www.msspeech-forum.com/forum_images/msspeech_forum.png</url>
   <link>https://www.msspeech-forum.com/</link>
  </image>
  <item>
   <title><![CDATA[Action after recognizing a command : This forum is for users of WSR,...]]></title>
   <link>https://www.msspeech-forum.com/action-after-recognizing-a-command_topic167_post821.html#821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=1">mmarkoe_admin</a><br /><strong>Subject:</strong> 167<br /><strong>Posted:</strong> 04/Mar/2010 at 10:50am<br /><br />This forum is for users of WSR, Windows Speech Recognition, built into the Vista and Window 7 operating systems.<DIV>&nbsp;</DIV><DIV><a href="http://msdn.microsoft.com/en-us/library/ee431825%28VS.85%29.aspx" target="_blank"><strong>CLICK HERE</strong></A> for Microsoft Developer Support.</DIV><DIV>&nbsp;</DIV><DIV>Marty Markoe, eMicrophones, Inc.</DIV>]]>
   </description>
   <pubDate>Thu, 04 Mar 2010 10:50:28 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/action-after-recognizing-a-command_topic167_post821.html#821</guid>
  </item> 
  <item>
   <title><![CDATA[Action after recognizing a command : Hi peoplei&amp;#039;m new to speech...]]></title>
   <link>https://www.msspeech-forum.com/action-after-recognizing-a-command_topic167_post820.html#820</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 167<br /><strong>Posted:</strong> 04/Mar/2010 at 5:46am<br /><br /><p>Hi people</p><p>i'm new to speech development and i'm learning as i go forward.</p><p>i'm developing an application using system.speech namespace with some simple functionality.</p><p>i'm using the following method to display what is recognized in a text box, this part works fine: <br></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void spRecognizer_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; textBox2.Text = e.Result.Text;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </p><p>also, i'm using this method to create a grammar builder to create some grammars (commands)</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private Grammar CreateSampleGrammar()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Choices commandChoices = new Choices("Wikipedia", "Google", "Yahoo", "MSN");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GrammarBuilder grammarBuilder = new GrammarBuilder("Search");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; grammarBuilder.Append(commandChoices);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Grammar g = new Grammar(grammarBuilder);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g.Name = "Available programs";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return g;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p><p>and when i click on the button, the grammar is loaded:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private void button3_Click(object sender, EventArgs e)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SpeechRecognizer spRecognizer = new SpeechRecognizer();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Grammar g = CreateSampleGrammar();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; spRecognizer.LoadGrammar(g);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </p><p>i should mention that before i click on this button, when i say , for example: Search Google, in the text box it appears search google ( not all of the time, but most of the times its something similar). but after i click the button, when the grammar is loaded, then, when i say for example search google, on the speech recognition bar ( on the top of screen) it displays "Search Google", but nothing is typed in the text box.</p><p>&nbsp;it seems to me that, the second time when i say "search wikipeda", the engine recognize the phrase as a command, a command like "Open Notepad" (which opens notepad). correct me if i'm wrong...</p><p>if that's the case, that's what want, i'd like the application to take an action upon recognizing my command, like when i say "Search Google", with the grammar loaded, google.com should be opened in the system's default web explorer. </p><p>&nbsp;how can i achieve this?</p><p>appreciating any help in advance <br></p><hr align="left" width="25%" size="1">Ali.B									]]>
   </description>
   <pubDate>Thu, 04 Mar 2010 05:46:21 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/action-after-recognizing-a-command_topic167_post820.html#820</guid>
  </item> 
 </channel>
</rss>