Jump to content
Sign in to follow this  
GmAz

Text to speech VBS script

Recommended Posts

I use a text to speech script for fun. It is as follows:

 

Set objVoice = CreateObject("SAPI.SpVoice")

objVoice.Speak Inputbox("Enter Text")

 

I am no programmer and found it on the internet. what i need though is for the window not to close after I press enter. Would anyone be willing to make a vbs script that wont' close after i hit enter to speak the text.

Share this post


Link to post
Share on other sites

Use a text box and a submit button instead of an inputbox. Set the action on the submit button to objVoice.Speak txtBox.Text

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...