Una simple funcion para hacer hablar a la computadora , no se emocionen solo habla en ingles , cabe destacar que este funcion no anda en Window Seven , pero si en Vista y XP.
#!usr/bin/ruby
#Funcion speak()
#Coded by Doddy H

require "win32ole"

def speak(text)
  test = WIN32OLE.new("SAPI.Spvoice")
  test.Speak(text)
end

speak("Hi")

#The End ?
Responder

Volver a “Otros lenguajes de Scripting”