[Ruby] Funcion speak()
Publicado: 06 Ago 2015, 18:20
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 ?