<?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 : Program ported to Win7, now gone haywire :(</title>
  <link>https://www.msspeech-forum.com/</link>
  <description><![CDATA[This is an XML content feed of; MSSpeech Forum : New Users &amp; General Questions : Program ported to Win7, now gone haywire :(]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 08:45:37 +0000</pubDate>
  <lastBuildDate>Sun, 19 Feb 2012 17:49:40 +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=279</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[Program ported to Win7, now gone haywire :( : Thanks Andy but I got the answer....]]></title>
   <link>https://www.msspeech-forum.com/program-ported-to-win7-now-gone-haywire_topic279_post1349.html#1349</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=513">Blazio</a><br /><strong>Subject:</strong> 279<br /><strong>Posted:</strong> 19/Feb/2012 at 5:49pm<br /><br /><p>Thanks Andy but I got the answer. I was using a Shared Recognizer. Now I'm using an InProc (non-shared) recognizer. Here is the code for those who are interested. It works fine, the InProc recognizer is the only recognizer that gets reco events in Win 7 and Vista:</p><div>&nbsp;</div><div>Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br>&nbsp;<br>&nbsp;&nbsp; Dim WithEvents RecoContext As SpInProcRecoContext<br>&nbsp;&nbsp; Dim InProcRecoContextRecognizer As SpInprocRecognizer</div><div>&nbsp;</div><div><br>Private Sub MyTestProc()</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim MyFirstToken As New SpeechLib.SpObjectToken<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim MySecondToken As New SpObjectToken<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RecoContext = New SpInProcRecoContext<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InProcRecoContextRecognizer = RecoContext.Recognizer</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim I As SpeechLib.SpInprocRecognizer<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I = New SpInprocRecognizer</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim myCategoryID As String = ""<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim MyCategory As New SpObjectTokenCategory</div><div><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyFirstToken = InProcRecoContextRecognizer.GetAudioInputs().Item(0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myCategoryID = MyFirstToken.Category.Id<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyCategory.SetId(myCategoryID)</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MySecondToken.SetId(MyCategory.Default())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InProcRecoContextRecognizer.AudioInput = MySecondToken</div><div>End Sub</div>]]>
   </description>
   <pubDate>Sun, 19 Feb 2012 17:49:40 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/program-ported-to-win7-now-gone-haywire_topic279_post1349.html#1349</guid>
  </item> 
  <item>
   <title><![CDATA[Program ported to Win7, now gone haywire :( :  Blazio,  The reason why your...]]></title>
   <link>https://www.msspeech-forum.com/program-ported-to-win7-now-gone-haywire_topic279_post1330.html#1330</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=111">andy t</a><br /><strong>Subject:</strong> 279<br /><strong>Posted:</strong> 11/Feb/2012 at 12:57pm<br /><br /><p><span style='color: black; font-family: "Arial","sans-serif"; font-size: 10pt; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: "Times New Roman";'>Blazio,<br><br>The reason why your program may have worked on XP and not Windows 7 is, XP is SAPI4 compliant (the older Microsoft speech API SAPI 4).<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></span></p><p><font size="3" face="Times New Roman"></font><span style='color: black; line-height: 115%; font-family: "Arial","sans-serif"; font-size: 10pt; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-fareast-: EN-US; mso-ansi-: EN-GB; mso-bidi-: AR-SA;'>Whereas, Windows Vista &amp; 7 are SAPI 5 compliant (the newer Microsoftspeech API).<span style="mso-spacerun: yes;">&nbsp; So your program</span> will not work with thelatter because of this reason.<br><br>Your best bet is to Google "SAPI 5" for Windows 7.<span style="mso-spacerun: yes;">&nbsp; </span>There have been several versions of SAPI 5since it came out.<span style="mso-spacerun: yes;">&nbsp; </span>The link below from Wikishows the different versions.<br><br><a href="http://en.wikipedia.org/wiki/Microsoft_Speech_API" target="_blank"><b><font color="#3399cc" size="2" face="Arial">http://en.wikipedia.org/wiki/Microsoft_Speech_API</font></b></a><br><br>andy t</span></p><span style="font-size:10px"><br /><br />Edited by andy t - 11/Feb/2012 at 1:01pm</span>]]>
   </description>
   <pubDate>Sat, 11 Feb 2012 12:57:24 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/program-ported-to-win7-now-gone-haywire_topic279_post1330.html#1330</guid>
  </item> 
  <item>
   <title><![CDATA[Program ported to Win7, now gone haywire :( :   All,I have a program that...]]></title>
   <link>https://www.msspeech-forum.com/program-ported-to-win7-now-gone-haywire_topic279_post1321.html#1321</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=513">Blazio</a><br /><strong>Subject:</strong> 279<br /><strong>Posted:</strong> 07/Feb/2012 at 9:26am<br /><br />All,<div>&nbsp;</div><div>I have a program that I originally built on XP. It works perfectly there. It&nbsp;presents passages of text to the user to read aloud,&nbsp;it provides excellent feedback, it's very accurate well behaved and reliable. What can I say,&nbsp;I'm a sucker for SAPI, I think it's one of the more amazing things I've encountered in my life. </div><div>&nbsp;</div><div>Anyway, I finally ported it to Windows 7. And now things have pretty much gone haywire. I haven't been able to find good information on how to control what goes on there.</div><div>&nbsp;</div><div>On xp, when I enable a reco_context, that's what's listening and that's what reacts. I'd like to achieve the same behavior on Windows 7, but I can't and I've spent days and days trying to figure it out. I see the small Speech Recognition window come up but I don't know what to do with it. I can see it correctly displaying the words that were spoken but they don't seem to go through to my enabled reco context. Sometimes they do, sometimes they don't.</div><div>&nbsp;</div><div>To make it even worse, Win7 speech recognition seems to interpret some pronounced words as commands to the computer. Thus it clicks buttons, clicks tabs on the tabbed interface, everything jumps all around. It's not usable. </div><div>&nbsp;</div><div>Can someone point me in the right direction. I assume I can control all of these behaviors programatically and get to where I need to be, but I don't know where the documentation for any of that would be.</div><div>&nbsp;</div><div>Thanks for any help you can give</div>]]>
   </description>
   <pubDate>Tue, 07 Feb 2012 09:26:52 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/program-ported-to-win7-now-gone-haywire_topic279_post1321.html#1321</guid>
  </item> 
 </channel>
</rss>