Thanks, Bruce,
exactly what I was looking for.
----- Original Message -----
From: LB
To: GW Scripting
Sent: Tuesday, February 11, 2014 1:58 AM
Subject: Re: Using a SAPI voice?
Hi David,
There is a flag to set asynchronous calls and in my SAPI class I set up
the calls in public statements,
Format:
(Without Pitch)
oTTS.Speak txt, async Or xml
(With Pitch)
oTTS.Speak "<pitch absmiddle=""" & CStr( getPitch) & """>" & txt &
"</pitch>", flags
Flags:
Everything is and or or together in one line for the flags which are below:
The default is sync and is 0, I don't know what your flag settings are but it
should be the default if no flags sent.
default_spk = 0
sync = 0 ' Default: CONTINUOUS SPEECH!
async = 1 ' Comes back after spoken phrase.
purge = 2 'STOP BEFORE SPEAK only if async is used!
isfile = 4 'OPEN TEXT AS TEXT FILE NAME AND SPEAK FILE TEXT!
xml = 8 'USE XML TAGS!
no_xml = 16 'IGNORE XML TAGS!
persist = 32 'XML NEW TAGS PERSIST IN ALL SPEECH!
punc = 64 'SAY ALL PUNCTUATIONS!
Sent: Monday, February 10, 2014 4:33 PM
Subject: Using a SAPI voice?
In my app, I am using a SAPI voice, to read out a certain amount of text.
the very basics of the code, is:
Dim SVoice: Set SVoice = CreateObject( "SAPI.SpVoice")
SVoice.Speak "blah-blah-blah!"
Allright, all of this works fine. Yet, since the text is somehow lengthy,
and I want other processes not to wait for all that text to be spoken, I have
this one question for you experienced developers.
Is there any instruction I can use, to send the text to the Sapi voice, and
immediately have the next line of code carried out? That is, some kind of an
instruction for the Sapi Object, to know that it is not supposed to wait for
the voice to finish speaking, before the code can move on.
Thanks for any response, and hope the above somehow made sense.
------------------------------------------------------------------------------
This email is free from viruses and malware because avast! Antivirus
protection is active.