Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Const SAFT48kHz16BitStereo = 39
- Const SSFMCreateForWrite = 3
- Dim oFileStream, oVoice
- Set oFileStream = CreateObject("SAPI.SpFileStream")
- oFileStream.Format.Type = SAFT48kHz16BitStereo
- oFileStream.Open "C:\Temp\Sample.wav", SSFMCreateForWrite
- Set oVoice = CreateObject("SAPI.SpVoice")
- Set oVoice.AudioOutputStream = oFileStream
- oVoice.Speak "FWAAAAAAAAAAF"
- oFileStream.Close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement