Many years ago, we created an app for iOS called Start Speaking that would speak the contents of the keyboard. You can now get this functionality from a shortcut.

Download Shortcut: Start Speaking