Use Microsoft Text to Speech

in tips •  8 years ago  (edited)

If you have very long text to read and you don't want to read but rather listen to the text, then follow these simple instructions given by me.

Easy to follow steps

  1. Open a notepad, notepad++ or any text editor.
  2. Copy the codes given at code block at the last of this article and paste it into the newly opened file in your text editor.
  3. Save this file with any name with (.vbs) file extension (eg. speak.vbs)
  4. Double click the file and enjoy listening.
  5. Change the content of speech variable and save the file.

Note: You can replace the content of the speech variable with your text that you want to listen

'Author: Siken M Dongol
Dim message, sapi
Dim speech

message=InputBox("What do you want me to say?","Speak","Input box text has limitation, you can not keep long text here. Lets Begin")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message

speech = "The computer will start to speak whatever English word that you are going to type in here. I have not tested with very long text. "
speech = speech + "But I guess you can have pretty long sentence as long as the variable can hold. Enjoy listening to what you have just typed. Enjoy Microsoft Speach API (SAPI). "
speech = speech + "This is for handling multiple paragraphs, line breaks can break the vbs file."

sapi.Speak speech
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @sikenman! You have received a personal award!

Happy Birthday - 1 Year
Click on the badge to view your own Board of Honor on SteemitBoard.

For more information about this award, click here

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @sikenman! You have received a personal award!

2 Years on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:
SteemitBoard World Cup Contest - Russia vs Croatia


Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes


Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Great BUt does not work for long paragraph.
Is there any other solution then tell me ?

Congratulations @sikenman! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 3 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!