Text to Speech module uses Google Cloud Text-to-Speech library which allows you to convert words and sentences audio data of natural human speech. You can then convert the audio data into a playable audio file like an MP3. The Cloud Text-to-Speech API accepts input as raw text or Speech Synthesis Markup Language (SSML).
Install the module using compose
composer require drupal/google_text_to_speech
Install Php Extensions bcmath & intl which are required for some features to work.