ok it's not a powershell script, but it's a windows-only script for sure
This commit is contained in:
parent
a368629f26
commit
1655386c0c
15
powershell/speak2.vbs
Normal file
15
powershell/speak2.vbs
Normal file
@ -0,0 +1,15 @@
|
||||
Const SAFT48kHz16BitStereo = 39
|
||||
Const SSFMCreateForWrite = 3
|
||||
|
||||
Dim oFileStream, oVoice
|
||||
|
||||
Set oFileStream = CreateObject("SAPI.SpFileStream")
|
||||
oFileStream.Format.Type = SAFT48kHz16BitStereo
|
||||
oFileStream.Open "./speak2.wav", SSFMCreateForWrite
|
||||
|
||||
Set oVoice = CreateObject("SAPI.SpVoice")
|
||||
Set oVoice.AudioOutputStream = oFileStream
|
||||
|
||||
oVoice.Speak "Ask your doctor if zygardalveceptduradomide is right for you."
|
||||
|
||||
oFileStream.Close
|
Loading…
Reference in New Issue
Block a user