Text to speech with DTP and DTTG

Is there any possibility to use text to speech for whole documents and/or selected text in DTP and DTTG? If yes, how do you use it?

DEVONthink doesn’t have any built-in support for text to speech. macOS does, so you may see it in some circumstances via the contextual menu > Speech or Edit > Speech. It does work on a limited basis but I don’t know that it would read entire documents except short ones. Apple’s site say you can “hear an entire document” but fails to define what a document is.

Also, a document may require a text selection to enable speech, e.g., PDF documents.

There¨s a script in the menu Scripts > Comments to speak comments. A revised version could e.g. speak the selected text instead.