This is a fun experiment to make any Microsoft Windows computer talk to you. It uses something built into Windows called Visual Basic. This allows you to write a small program (called a "script") with instructions that make your PC say some words.
Set Speak = CreateObject("sapi.spvoice")
Speak.Rate = 0
Speak.Volume = 100
Speak.Speak "Hello. I am the computer and I am pleased to meet you."
say and listen.
Dim Message
Message = InputBox("Please enter some text","Speak")
Set Speak = CreateObject("sapi.spvoice")
Speak.Rate = 0
Speak.Volume = 100
Speak.Speak Message
Dim Message
Set Speak = CreateObject("sapi.spvoice")
Speak.Rate = 0
Speak.Volume = 100
Message = "The time is " & Time
Speak.Speak Message
Message = "The date is " & Date
Speak.Speak Message
Message = "The date and time is " & Time & " " & Date
MsgBox(Message)
Dim Message
Dim Message, Speak
Set args = Wscript.Arguments
For Each arg In args
Message = Message & arg & " "
Next
if Message = "" Then
Message=InputBox("Enter text","Speak")
End If
Set Speak = CreateObject("sapi.spvoice")
Set Speak.Voice = Speak.GetVoices.Item(1)
Speak.Rate = 0
Speak.Volume = 100
Speak.Speak Message