<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'problem with VB.NET SAPI 5.1' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'problem with VB.NET SAPI 5.1' posted on the 'VB.NET' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2010 Programmers Heaven</copyright>
    <pubDate>Mon, 15 Mar 2010 22:27:14 -0700</pubDate>
    <lastBuildDate>Mon, 15 Mar 2010 22:27:14 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>problem with VB.NET SAPI 5.1</title>
      <link>http://www.programmersheaven.com/mb/VBNET/408991/408991/problem-with-vbnet-sapi-51/</link>
      <description>hi to everyone&lt;br /&gt;
 i having this problem about sapi 5.1 and vb.net.. i cant run the program becuase it gives me an error.. i think the engine is not running or my codes is incorrect.. &lt;br /&gt;
&lt;br /&gt;
can you help me guys to solve this problem?? &lt;br /&gt;
&lt;br /&gt;
very much appreciated.. thanks!!&lt;br /&gt;
&lt;br /&gt;
here's my code...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Private Sub main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        gmode = 0
        gRestoreGrammar = False

        On Error GoTo GeneralFail
        Dim engine
        REM Initialize the recognizer. We want command and control, so find and select that engine (or best match)
        AxDirectSR1.Initialized = 1

        engine = AxDirectSR1.Find("MfgName=Microsoft;Grammars=1")
        AxDirectSR1.Select(engine)

        REM menu.txt is our uncompiled grammar. Compile and load it now.
                AxDirectSR1.GrammarFromFile("C:\Documents and Settings\kaex21\My Documents\Visual Studio 2008\Projects\Project1\WindowsApplication6\Windows
Application6\menu.txt")
        REM Now load the synthesizer, find and select any female voice from microsoft
        AxDirectSR1.EngineId(AxDirectSR1.Find("MfgName=Mic
rosoft;Grammars=1"))

        REM Start the voice interface...control goes to DirectSS1_AudioStop after this is said, gMode=0
        AxDirectSS1.Speak("Welcome to kaex restaurant, sit back and enjoy as you take your order.")

        REM sometimes the vb environment comes to front while we're loading, so take the screen back
        Me.Show()
        GoTo done
GeneralFail:
        MsgBox("Unable to start using text to speech or recognition.")
done:

    End Sub&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/408991/408991/problem-with-vbnet-sapi-51/</guid>
      <pubDate>Mon, 09 Nov 2009 18:58:55 -0700</pubDate>
      <category>VB.NET</category>
    </item>
  </channel>
</rss>