Hey guys,
I'm trying to create a text to speech vbscript. The problem I'm having is that I can only select between 3 voices. I have 8 available in Windows 10.
Here is my code:
I get a vbs error message when I choose a number greater than 2 for the voice.GetVoices.Item(1) parameter.
Error: 0x80045039
Code: 80045039
Source: (null)
Any suggestions?
TIA,
grecinos
I'm trying to create a text to speech vbscript. The problem I'm having is that I can only select between 3 voices. I have 8 available in Windows 10.
Here is my code:
Code:
set voice = CreateObject("SAPI.SpVoice")
set voice.Voice = voice.GetVoices.Item(1)
voice.Rate = 1
voice.Volume = 90
voice.Speak TextMessage
I get a vbs error message when I choose a number greater than 2 for the voice.GetVoices.Item(1) parameter.
Error: 0x80045039
Code: 80045039
Source: (null)
Any suggestions?
TIA,
grecinos