Hi, so I built the dice game pig as an audio game with pygame and accessible_output2. I built a simple AI that would hold the turn total
if it fell into a randomly generated range. I was having some problems though, because the sounds and screen reader were overlapping, so I used
pygame.time.delay(t)
to delay for a specific amount of given time. After messing with the time for a while, I finally got it so that there were delays around the sounds such that the screen reader would not start talking while the sound is playing. I realized then that this was a poor solution because It was time delayed based on the rate of my screen reader, as soon as I slowed NVDA down, I had the same problem as before and all the delays were in the wrong places.
Is there a better solution to use so that sounds don't play until after a screen reader has stopped speaking?
TJ Breitenfeldt