kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
Code:
Sub TestVoices()
Dim i As Long
Dim voc As SpeechLib.SpVoice
Set voc = New SpVoice
i = [RANDBETWEEN(0,2)]
Set voc.Voice = voc.GetVoices.Item(i)
voc.Speak "I want to run next lines while voice is playing"
MsgBox i
End Sub
In other versions I could do that , like this:
Code:
Application. Speech.Speak "Hello", SpeakAsync:=True
What is it that I have to do to the first code to let the alert show while the voice is playing?