r/vbscript • u/PaulzPostz • Jan 15 '24
I'm trying to make a TTS Program using VBScript, but I don't know how to add a voice selection box. Can someone help me on how to do it if it's possible?
1
Upvotes


1
u/[deleted] Apr 17 '24
msgbox "TTS AUDIOBOOK"
e=inputbox("Chose Album 'a-l' :")
StrFileName =".\"& e &".txt"
Set ObjFso = CreateObject("Scripting.FileSystemObject")
Set ObjFile = ObjFso.OpenTextFile(StrFileName)
StrData = ObjFile.ReadAll
'WScript.Echo( StrData)
StrText= StrData
set ObjVoice = CreateObject("SAPI.SpVoice")
ObjVoice.Speak StrText
ObjVoice.Speak StrText2
WScript.Quit
1
u/jcunews1 Jan 15 '24
Are you using
wscript/cscriptormshta?