elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Introducción a Git (Primera Parte)


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [Ruby] Funcion speak()
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Ruby] Funcion speak()  (Leído 1,385 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Ruby] Funcion speak()
« en: 10 Febrero 2012, 19:02 pm »

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.

Código
  1. #!usr/bin/ruby
  2. #Funcion speak()
  3. #Coded by Doddy H
  4.  
  5. require "win32ole"
  6.  
  7. def speak(text)
  8.  test = WIN32OLE.new("SAPI.Spvoice")
  9.  test.Speak(text)
  10. end
  11.  
  12. speak("Hi stupid ,i like fuck your mother")
  13.  
  14. #The End ?
  15.  


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Perl] Funcion Speak()
Scripting
BigBear 0 1,539 Último mensaje 10 Octubre 2011, 16:51 pm
por BigBear
[Ruby] Funcion tomar()
Scripting
BigBear 0 1,376 Último mensaje 10 Febrero 2012, 19:01 pm
por BigBear
[Ruby] Funcion toma()
Scripting
BigBear 0 1,400 Último mensaje 10 Febrero 2012, 19:02 pm
por BigBear
[Ruby] Funcion savefile()
Scripting
BigBear 0 1,361 Último mensaje 10 Febrero 2012, 21:02 pm
por BigBear
[Ruby] Funcion openwords()
Scripting
BigBear 0 1,360 Último mensaje 10 Febrero 2012, 21:03 pm
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines