When using the read aloud functionality, there is need to keep the screen turned on. Otherwise, when it gets turned off, the text to speech stops and it does not resume even when unlock the screen. trying to start it again gives an error.
Thanks @hakimks - I just put the update fix you sent into the core (master) branch.
I have also noticed this flag is not cleared at the end of the reading or if a user swipes to the next or previous section.
So there is need to clear the keep screen on flag (getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) when a user finishes reading and/or when the user swipe to the left or right to the next section.