I was wondering if there was an accessibility API on Linux/X11 like there is in Windows.

So far I can get a list of visible windows and their handles, but I can not drill down into their controls. I am working on a Text To Speech application and I want to be able to have it read data, like from a text widget for example, for various applications. I can not figure out how to do this under X11.

Any advice?