🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.multimedia
Article #6

TTS with C#

#6
From: Joe Gabriele
Date: Thu, 13 Apr 2006 23:32
19 lines
1663 bytes
Hi,

I've put together a small application in C# that converts text files into 
speech. It appears to work quite well with one exception. There doesn't seem 
to be a way to stop the speech process once it has begun with the line 
Voice.Speak(SpeakText.Text, SpFlags);. You can Pause() and Resume() but you 
can't stop.

I have found some articles on the web that say one way of doing it is to 
call Voice.Speak again with a null string as the text file and 
SVSFPurgeBeforeSpeak as the flag. The problem is that these articles are all 
talking about C++. C# doesn't understand what SVSFPurgeBeforeSpeak is.

Would anyone have any ideas or be able to point me to some documentation 
that covers this?

Thanks

Joe Gabriele
Technical Details
Message-ID: <443edf83@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 21671d,36eed57dd2e9343d,start
X-Google-Attributes: gid21671d,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Joe Gabriele" <SORRY@TOO.MUCH.SPAM>
Newsgroups: borland.public.csharpbuilder.multimedia
Subject: TTS with C#
Date: Thu, 13 Apr 2006 19:32:20 -0400
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
NNTP-Posting-Host: 70.51.196.27
Message-ID: <443edf83@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1144971139 70.51.196.27 (13 Apr 2006 16:32:19 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail