I have the following simple code. It fails when trying to call the "speak" method.
Imports System.Globalization
Imports SpeechLib
Public Class Form1
Public WithEvents Voice As SpVoice = Nothing
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If Voice Is Nothing Then Voice = New SpVoice
Voice.Speak("I can speak", SpeechVoiceSpeakFlags.SVSFlagsAsync)
End Sub
End Class
When I run the program and click the button, I get System.Interop.COMexception Exception from HRESULT: 0x8004503A. I am NOT running this as ASP.NET, which is the only help I can find, this is a simple Windows Forms application. I was getting access
denied and then changed this to an x86 only project and now get this error.