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");
?>
Comments
No comments yet.
Leave a comment