Make your PC talk

December 2016


I want to know how to make my computer talk like in movies ?


  • Open a text file in notepad and write:

Dim msg, sapi 
msg=InputBox("Enter your text","Talk it") 
Set sapi=CreateObject("sapi.spvoice") 
sapi.Speak msg 
  • Save the file with a (*.vbs) extension, it will create a VBScript File.
  • It will prompt you for a text when u open the file, input the text and press ok."
  • You will hear what you typed. This works in XP and may be in Vista also.

Related :

This document entitled « Make your PC talk » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.