Imports SpeechLib Public Class Form1 Public vox = CreateObject(\"sapi.spvoice\") Private Sub cmdSpeak_Click(ByVal sender As System.Object, ByVal e As Syste
In cmdSpeak_Click, pass text2 as a parameter to RunWorkerAsync
cmdSpeak_Click
BackgroundWorker1.RunWorkerAsync(text2)
In BackgroundWorker1_DoWork, retrieve the value of the parameter
BackgroundWorker1_DoWork
vox.Speak(DirectCast(e.Argument, String), SpeechVoiceSpeakFlags.SVSFlagsAsync)