in reply to Text to Speech Win32::OLE Error
haha, and ++ for "Would you like to play a game", the "Hello, World" of text to speech :-)#!/usr/bin/perl use strict; use warnings; use Win32::OLE; my $v=Win32::OLE->new('SAPI.SpVoice'); while (<>) { # space out numbers so they'll # be spoken individually my $single = s/(\d)/$1 /g; $v->Speak($_); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Text to Speech Win32::OLE Solution
by TROGDOR (Scribe) on Nov 02, 2004 at 00:43 UTC | |
by jimrobertsiii (Scribe) on Nov 02, 2004 at 05:34 UTC | |
Re^2: Text to Speech Win32::OLE Solution
by Jouke (Curate) on Nov 02, 2004 at 10:54 UTC |