Dim sph As SpVoice
Private Sub Command1_Click()
sph.Speak Text1.Text
End Sub
Private Sub Form_Load()
Dim t As SpObjectToken
Set sph = New SpVoice
For Each t In sph.GetVoices
Me.List1.AddItem t.GetDescription
Next
Set sph.Voice = sph.GetVoices.Item(1)
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set sph = Nothing
End Sub
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then Command1_Click