🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TTS with C#

#7
From: Marc Rohloff TeamB
Date: Fri, 14 Apr 2006 01:40
21 lines
1908 bytes
On Thu, 13 Apr 2006 19:32:20 -0400, Joe Gabriele wrote:

> 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.

Its a predefined constant, a quick Google search turns up its value as
2.

-- 
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID: <xdgqogh1jwxy.dlg@dlg.marcrohloff.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <443edf83@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 21671d,36eed57dd2e9343d
X-Google-Attributes: gid21671d,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: TTS with C#
Newsgroups: borland.public.csharpbuilder.multimedia
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <443edf83@newsgroups.borland.com>
Date: Thu, 13 Apr 2006 21:40:17 -0400
Message-ID: <xdgqogh1jwxy.dlg@dlg.marcrohloff.com>
X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR
X-Antivirus: avast! (VPS 0615-2, 04/12/2006), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 65.31.1.121
X-Trace: newsgroups.borland.com 1144978815 65.31.1.121 (13 Apr 2006 18:40:15 -0700)
Lines: 21
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail