VB Script - Play Sound or Verbal Prompt
It's possible to play a sound (Wave File) or use TTS (Text to Speech) to give user and audible cue during program execution.
VB Script example:
- Set oVoice = CreateObject("SAPI.SpVoice")
- with oVoice
- Set .voice = .getvoices.item(0)
- .Volume = 100
- .Rate = 1
- end with
- set oSpFileStream = CreateObject("SAPI.SpFileStream")
- oSpFileStream.Open "c:\Windows\Media\notify.wav"
- oVoice.SpeakStream oSpFileStream
- oSpFileStream.Close
- oVoice.Speak "Finished Playing wave file."