Greetings,
I am using Win32::OLE to connect to
the SAPI 5.3 text-to-speech engine in Windows (XP/Vista/7).
Like so:
my $voice = Win32::OLE->new("SAPI.SpVoice");
$voice->Register('', 'Perl');
and then:
$voice->Speak("hello world", SND_ASYNC);
The constant SND_ASYNC comes from Win32::Sound.
The above works just fine.
The two tasks I am struggling with now are:
1 - Changing the voice (Spanish to English) programmatically.
2 - Stopping the speaking. If I have given the Speak method
a long string of text and decide that I don't want to hear it all
how do I shut it up safely and cleanly so that I can proceed with
further
speech requests??
It is not clear what methods I can call on the $voice object.
This page seems authoritative:
http://msdn.microsoft.com/en-us/library/ms719576(v=VS.85).aspx
but since the examples are in C++ and not in Perl
it is not clear to me what I need to do.
Any and all help is most appreciated!
Thank you,
Jon
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs