0

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

Matar Mudi
  • 37
  • 7
  • this is my code: – Matar Mudi May 18 '14 at 06:57
  • 1
    possible 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 Answers2

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
0

Try this [HTA] create an MP3 sound file of typed text

Hackoo
  • 18,337
  • 3
  • 40
  • 70