The TTS API not working I need to fix my code, please help!?

Thank you. It was some kind of a compatibility issue. I just created a virtual environment and it resolved it.