[jawsscripts] Re: pausing and resuming speech

  • From: Andrew Hart <ahart@xxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sun, 16 Sep 2012 10:33:15 -0300

Internally, the speech drivers can tell what has been spoken due to the
indexing mechanism employed by speech synthesizers.  That's basically
how Say All knows where to park the cursor when you press control.

For those who've never heard of indexing, it works like this.  You
insert index marks (or indexing tags) at points of interest in the text
stream being pumped out to the synthesizer, be it hardware or software.
 Then, while the synthesizer processes the text and converts it to
speech, it sends a message back to the driver, in the form of a response
code (in the case of a hardware serial/parallel/USB synthesizer) or via
a callback function (software synthesizer), etc.  The message contains
the index code corresponding to the last index mark encountered by the
synthesizer while it is processing the text stream.  The synthesizer
only processes an index mark when all the text prior to the mark has
finished being spoken.  Thus, when the driver receives an indexing
message from the synthesizer, it can look back through a copy of the
text stream sent out to find the last thing spoken.  As far as i am
aware, all synthesizers employ this technique or some variation of it.

However, to the best of my knowledge the JAWS speech driver API is not
connected to the scripting language, so from a scripter's point of view,
you cannot tell what the last word spoken was.  If anyone knows
otherwise, I would be happy to be proven wrong.

Hth,
Andrew.

On 16/09/2012 6:44 AM, Sean Farrow wrote:
> Hi:
> Ok, is there a way of determining what character/word has just been spoken?
> Cheers
> Sean.
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx 
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Soronel Haetir
> Sent: 16 September 2012 01:09
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: pausing and resuming speech
> 
> I don't think so.  I believe the most you can do is stop whatever is speaking 
> right now and then later feed jaws more text to speak.
> 
> On 9/15/12, Sean Farrow <sean.farrow@xxxxxxxxxxxxxxxx> wrote:
>> Hi:
>> I should know the answer to this, but is it possible to pause, and 
>> then later in time resume speech?
>> Any help appreciated.
>> Cheers
>> Sean.
>> __________ 
>>
>> View the list's information and change your settings at 
>> http://www.freelists.org/list/jawsscripts
>>
>>
> 
> 
> --
> Soronel Haetir
> soronel.haetir@xxxxxxxxx
> __________ 
> 
> View the list's information and change your settings at 
> http://www.freelists.org/list/jawsscripts
> 
> __________�
> 
> View the list's information and change your settings at 
> http://www.freelists.org/list/jawsscripts
> 
> 
> 


__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: