I search "TTS B4A" in Github and find a TTS library for B4A, Version is 1.2.I replaced the files below the library, there is no problem in running, the function is a little more.
https://github.com/ProfessorJTJ/TTS
https://github.com/ProfessorJTJ/TTS