Thứ Sáu, 23 tháng 9, 2011

TALKING COMPUTER

You can create voice from your computer. whatever you will write in the box, computer will talk the same words. process the given below. 
  •  open notepad and write this code. 

Dim message, sapi
message=InputBox("aslam-o-alaikum friend. order me to talk something?","Speak to Me")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message

  • in this code i have written (aslam alaikum friend order me to talk something) but you can change it but don't change any other word from the code. 
  • Now save this file with extension .vbs
  • Now write some thing in the box and click ok
  • You will hear the written sentence.
  • Try it now.

Không có nhận xét nào:

Đăng nhận xét