I am working on HTA App so I have made app that u can enter the text and the voice plugin is reading but now I want the code that can make that sound to be exported and saved to disk that is all
Asked
Active
Viewed 239 times
0
-
this is my code: – Matar Mudi May 18 '14 at 06:57
-
1possible duplicate of [How to save SAPI text to speech to an audio file in VBScript?](http://stackoverflow.com/questions/20498004/how-to-save-sapi-text-to-speech-to-an-audio-file-in-vbscript) – Helen May 19 '14 at 08:47
2 Answers
0
Set objVoice = CreateObject("SAPI.SpVoice")
Set objStream = CreateObject("SAPI.SpFileStream")
Line="hello there"
ObjStream.Open "c:\users\HelloThere.wav", 3, vbFalse
set objVoice.AudioOutputStream = objStream
objVoice.Speak Line

GoughW
- 146
- 1