tags:

views:

122

answers:

0

I am facing error using SAPI speechEngine dll. and getting this COM Exception error on running. Please provide assistance.

Option Strict Off

Option Explicit On Imports VB = Microsoft.VisualBasic Imports SpeechEngine Imports SpeechLib Imports TestSpeechEngine

Inherits System.Windows.Forms.Form
Dim SpeechCom As SpeechEngine.EngineSpeech
Dim IDCounter As Integer

Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load

 If DebugMode = True Then
  MsgBox("Debug Mode Execution ? For faster execution kindly create an executable and place it in the SpeechRecognitionEngine folder [probably available in Program Files] ")
  End
 End If



    SpeechCom = New SpeechEngine.EngineSpeech
 SpeechCom.LoadCommands()
 IDCounter = SpeechCom.IDCount
 Dim no As Integer
 For no = 1 To SpeechCom.CommandsTotal - 1
  List1.Items.Add(SpeechCom.GetNextCommand)
 Next no
End Sub

Include SpeechEngine dll before running.