Re: Empirically setting a screen reader delay
@20: regarding the peak tracking algorithm, I would myself take different approach. Not because of half second long words, I don't think something like that could happen, although it is possible in theory.
But rather because 500 ms is very long time, and if your first stop is in half of its value, then secondone will be 750 ms from speech's end, and will jump in these values.
Thus to prevent that long pauses, I would do a single WaitForSpeechFinish method, which algorithm would be as follows:
int counter=0;
while (true)
{
if (GetScreenreaderPeak()==0.0)
counter++;
else if (counter!=0)
counter=0;
if (counter==50)
return;
Thread.Sleep(10);
}
This should prevent all problems discussed above, long pauses as well as short words.
Best regards
Rastislav
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector