Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delphi and Text to Speech

804 views
Skip to first unread message

Peter Skinner

unread,
Mar 2, 2003, 5:14:00 AM3/2/03
to
Hi

I would like to develop an application that reads text aloud. Are there any
resources out there for me. Or components that I could use....

--
Cheers

Peter

Philip Jander

unread,
Mar 2, 2003, 9:03:28 AM3/2/03
to
Hi Peter,

you can use MS SAPI 5.1 which provides (surprise) a COM interface for
speech output.

Download links and a good introduction in using sapi 5.1 with delphi
can be found at Brian Long's website:
http://www.blong.com/Conferences/DCon2002/Speech/Speech.htm
(more info in a current series of articles or Brian's in the delphi mag)

Additionally, if you google for SAPI+delphi you are likely to find some
components, but having never used them I can't comment.

Cheers,
Phil

Jake

unread,
Mar 2, 2003, 10:20:59 AM3/2/03
to
In borland.public.delphi.non-technical, Peter Skinner
<nospam.m...@e3.net.nz> wrote in message
<3e61d962$1...@newsgroups.borland.com>...

>Hi
>
>I would like to develop an application that reads text aloud. Are there any
>resources out there for me. Or components that I could use....
>

IIRC, Turbopower recently open sourced a product that does SAPI. I think
Async Pro is the product. If so, you could find it by doing a search on
tpapro on Sourceforge.

--
Visit Jake's Delphi Page at http://www.xnet.com/~johnjac
Download a free alpha test copy of Jake's Super Newsreader
at http://www.xnet.com/~johnjac/JSN.htm
Discuss JSN at usenet newsgroup alt.comp.software.newsreaders.jsn


Frank Andreas de Groot

unread,
Mar 2, 2003, 1:17:25 PM3/2/03
to
Thanks.
I just speech-enabled my Go program using these links,
it has a female voice saying: "Move one" etc.
With a one-liner, cool.

Frank - www.zenhacker.com


"Philip Jander" <p...@uni-muenster.NO.SPAM.de> wrote in message news:3e620f30$1...@newsgroups.borland.com...

Sierra Spartacus

unread,
Mar 2, 2003, 8:27:09 AM3/2/03
to
"Peter Skinner" <nospam.m...@e3.net.nz> wrote in message
news:3e61d962$1...@newsgroups.borland.com...

There are several new articles on the community site about SAPI.

--

Clay Shannon, author of "the Wacky Misadventures of Warble McGorkle"
(download it at
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=18781)

John Kaster (Borland)

unread,
Mar 2, 2003, 4:08:31 PM3/2/03
to
Peter Skinner wrote:
> I would like to develop an application that reads text aloud. Are there any
> resources out there for me. Or components that I could use....

http://bdn.borland.com/article/0,1410,29580,00.html


--
John Kaster, Borland Developer Relations, http://bdn.borland.com
$1280/$50K: http://homepages.borland.com/jkaster/tnt/thanks.html
Make a wish: http://qc.borland.com * Get source http://codecentral.borland.com


PeteK

unread,
Mar 3, 2003, 4:44:25 AM3/3/03
to
Peter,

Sorry, I missed the start of this thread so this might have been said
before: Brian Long (www.blong.com) wrote a couple of articles for the
Delphi Magazine recently (issues 88/90, I think) which covered TTS in some
detail. After reading the articles I was able to write a "spelling game"
for my daughter, which essentially reads a wordlist from a text file, and
for each says "Spell the word... <word> ". It plays nice sounds if she gets
it right and not so nice sounds if she gets it wrong.

Send me a personal email if you'd like a copy, but better still try to get
hold of Brian's articles (ouch, sounds painful).

Pete Kane

Loren Pechtel

unread,
Mar 3, 2003, 11:39:22 PM3/3/03
to
On Mon, 3 Mar 2003 09:44:25 -0000, "PeteK"
<peter.kane88_...@btinternet.com> wrote:

>Sorry, I missed the start of this thread so this might have been said
>before: Brian Long (www.blong.com) wrote a couple of articles for the
>Delphi Magazine recently (issues 88/90, I think) which covered TTS in some
>detail. After reading the articles I was able to write a "spelling game"
>for my daughter, which essentially reads a wordlist from a text file, and
>for each says "Spell the word... <word> ". It plays nice sounds if she gets
>it right and not so nice sounds if she gets it wrong.

How good is the computer at giving the PROPER sound for a word?

PeteK

unread,
Mar 4, 2003, 11:15:53 AM3/4/03
to
"Loren Pechtel" <lorenp...@hotmail.com> wrote in message
news:ls986v0rkef00nugm...@4ax.com...

That depends upon a number of factors. Firstly, "the computer" in this
context is a "speech engine", and there are many of these. For example MS
Office XP installs a speech engine called "Microsoft Mike", but the speech
SDK provides 2 and a bit more. Other companies have their own, but the MS
ones are free.

Then you need to take into account the context. For example, if "Mike"
speaks: "I don't think you could write this in VB", I think most English
speakers would understand (certainly all Delphi developers). However, when
Mike says "Spell the word: this" everything is clear apart from the word
"this", which sounds an like a short, fuzzy "ths" or "ds". Unfortunately,
the same is true for many words placed at the end like this, and even more
unfortunately, that is precisely the format that I wanted to use. I
improved things slightly by embedding in some XML tags which appended some
SILENT words at the end (I mean, where else would you append them?). "MS
Mike" is rather like the Steven Hawking's voice; I rather like the sound of
it.

I think that you can also develop your own speech engine (though I haven't
looked into that yet - maybe I'll let Brian do the hard work for me), which
is where the "bit" come from in the "2 and a bit" speech engines provided
with the SDK. This one just knows a few words, and says "blah" fro
everything else. My daughter loves this one ! The TTS software can also
"speak" (i.e. play) Wav files.

You might have a speech engine installed without knowing it. Have a look in
Control Panel and see if there is a Speech applet. If so, run it and if an
engine is installed you can type in some text to see (?) what it sounds
like.


Pete Kane


0 new messages