Skip to content

Instantly share code, notes, and snippets.

@adegard
Forked from andcar72/suona.vbs
Created February 16, 2020 17:12
Show Gist options
  • Save adegard/7f21fa61f9e029c695c63fe4403c9196 to your computer and use it in GitHub Desktop.
Save adegard/7f21fa61f9e029c695c63fe4403c9196 to your computer and use it in GitHub Desktop.
Esegue un suono (solo wav?) tramite vbs
Set oVoice = CreateObject("SAPI.SpVoice")
set oSpFileStream = CreateObject("SAPI.SpFileStream")
oSpFileStream.Open "C:\Windows\startup.wav"
oVoice.SpeakStream oSpFileStream
oSpFileStream.Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment