when you run texttospeechtalker pythe output will look like thistext to speech talkerby al sweigart al@inventwithpython com text-to-speech using the pyttsx modulewhich in turn uses the nsspeechsynthesizer (on macos)sapi (on windows)or espeak (on linuxspeech engines enter the text to speakor quit to quit hello my name is guido van robot quit thanks for playinghow it works this program is short because the pyttsx module handles all of the textto-speech code to use this moduleinstall it by following the instructions in this book' introduction once you've done soyour python script can import it with import pyttsx and call the pyttsc init(function this returns an engine object that represents the text-to-speech engine this object has say(method to which you can pass string of text for the computer to speak when you run the runandwait(method """text to speech talkerby al sweigart al@inventwithpython com an example program using the text-to-speech features of the pyttsx module view this code at tagstinybeginner"" import sys try import pyttsx except importerror print('the pyttsx module needs to be installed to run this' print('program on windowsopen command prompt and run:' print('pip install pyttsx ' print('on macos and linuxopen terminal and run:' print('pip install pyttsx ' sys exit( tts pyttsx init(initialize the tts engine print('text to speech talkerby al sweigart al@inventwithpython com' print('text-to-speech using the pyttsx modulewhich in turn uses' print('the nsspeechsynthesizer (on macos)sapi (on windows)or' print('espeak (on linuxspeech engines ' print( print('enter the text to speakor quit to quit ' while true text input('' project #