[nvda] Re: USB eSpeak
- From: Jonathan Duddington <jonsd@xxxxxxxxxxxxxxx>
- To: nvda@xxxxxxxxxxxxx
- Date: Thu, 26 Apr 2007 02:26:38 +0100
On 26 Apr, James Teh <jamie@xxxxxxxxxxx> wrote:
> There's something I don't quite understand. You said in a previous
> email that when in synchronous mode, to stop speech, one must return
> a certain value in the callback function. How often does the
> callback function get called?
As soon as the user-process has returned from the previous callback
(plus a short time for eSpeak to process the next buffer-full).
If the user-process is playing the sound, and waiting until play is
complete before returning from the callback function, then the
frequency of callbacks is proportional to the buffer size which you set
in espeak_Initialize().
> In order to have instantaneous silence, it would have ot be called
> every few samples. I assume it works fine, as you must be doing this
> for SAPI 5.
I use a buffer size of 100 mS (= 2205 samples). But the Windows SAPI5
manager plays the sound, not eSpeak. So it can stop the playing
immediately, irrespective of the buffer size.
How will stop-speaking work if you use a synchronous-playback mode?
You give eSpeak a sentence and it espeak_Synthesize() doesn't return
until it's completed. Unlike asynchronous-playback (where you can call
espeak_Cancel()) or either retrieval mode (where you can return "abort"
to the callback) there's no way to interrupt it. Can you kill the
thread and stop the speaking?
To post messages to the list send email to
nvda@xxxxxxxxxxxxx
To modify your NVDA Email settings go to:
http://www.freelists.org/list/nvda
Thank you for your continued support of Nonvisual Desktop Access, an open
source free screen reader for Microsoft Windows:
http://www.nvda-project.org/
Report bugs or make feature requests at:
http://trac.nvda-project.org/
Message Archive:
http://www.freelists.org/archives/nvda
- Follow-Ups:
- [nvda] Re: USB eSpeak
- From: James Teh
- References:
- [nvda] Re: USB eSpeak
- From: James Teh
- [nvda] Re: USB eSpeak
- From: Jonathan Duddington
- [nvda] Re: USB eSpeak
- From: James Teh
- [nvda] Re: USB eSpeak
- From: Jonathan Duddington
- [nvda] Re: USB eSpeak
- From: James Teh
- [nvda] Re: USB eSpeak
- From: Jonathan Duddington
- [nvda] Re: USB eSpeak
- From: James Teh
Other related posts:
- » [nvda] USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- » [nvda] Re: USB eSpeak
- [nvda] Re: USB eSpeak
- From: James Teh
- [nvda] Re: USB eSpeak
- From: James Teh
- [nvda] Re: USB eSpeak
- From: Jonathan Duddington
- [nvda] Re: USB eSpeak
- From: James Teh
- [nvda] Re: USB eSpeak
- From: Jonathan Duddington
- [nvda] Re: USB eSpeak
- From: James Teh
- [nvda] Re: USB eSpeak
- From: Jonathan Duddington
- [nvda] Re: USB eSpeak
- From: James Teh