I am making a desktop app which requires listening to the continuous text output stream of NVDA screen viewer. How to do it with their Python API?
# event which is triggered when a new
# text line appears in NVDA Speech Viewer
def on_new_text_line(text):
do_something(text)