Text To Speech (TTS) with Ruby and PHP

I was working with some scripts for having my PC talk. The first one is in Ruby:

require "win32/sapi5"
include Win32
v = SpVoice.new
v.Speak("this is the easiest thing to do since I have started working with ruby..")

Now this one in PHP:

<?php
$tts = new COM("SAPI.SpVoice");
$tts->speak("this is a test");
?>
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • LinkedIn
  • RSS
  • StumbleUpon
  • Twitter

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)