Re: Recommendations for a text to speech component?
- From: "Android Cat" <androidcat98@xxxxxxxxxxx>
- Date: Fri, 27 Jan 2006 10:53:48 -0500
GB Blanchard wrote:
> GB Blanchard wrote:
>
>> Can any of you recommend a text to speech component for Delphi? I'm
>> currently using D7.
>
> C'mon, please, I would assume that someone participating here uses or
> has used some sort of text to speech component. I'll even be happy to
> accept 'dis-recommendations' to avoid wasting time. :)
You can use the standard SAPI 5.1 TTS that comes installed with Win XP (your
region may vary), and can be installed for free back to Win 98SE. It ain't
pretty, but it works, it's free, and you can assume most people already have
it--I think. Note that the default "voice" isn't that good. Installing the
SDK 5.1 SDK gets you a couple more, but hopefully they're available
seperately without a 50M+ install.
There's also the SAPI 4 engines that are used with MS Agent, including the
L&H American English one that sounds better (IMHO) than the SAPI 5 one.
http://www.microsoft.com/msagent/downloads/user.asp
For SAPI 5.1, import the type library for "Microsoft Speech Object Library
(Version 5.0)"
(Should be in C:\Program Files\Common Files\Microsoft
Shared\Speech\sapi.dll)
// minimal example
uses SpeechLib_TLB;
procedure example;
var
MyVoice : SPVoice;
begin
MyVoice := CoSPVoice.Create;
MyVoice.Speak('By your command!', SVSFDefault);
end;
I have other code for enumerating the available voices and selection.
--
Ron Sharp.
.
- Prev by Date: Re: Folding Editor
- Next by Date: Re: Event handlers...
- Previous by thread: Re: Recommendations for a text to speech component?
- Next by thread: TColumn.Showing
- Index(es):
Relevant Pages
|