There are several APIs available to convert text to speech in Python.One of such APIs is the Google Text to Speech API commonly known as the gTTS API.gTTS saves the entered text as a mp3 file.
Tkinter is the standard GUI library for python.This framework provides Python users with a simple way to create GUI elements using the widgets found in the Tk toolkit. Tk widgets can be used to construct buttons, menus, data fields, etc. in a Python application.Once created, these graphical elements can be associated with or interact with features, functionality, methods, data or even other widgets.
Pygame is a library that used for loading and playing sounds.In order to play music/audio files in pygame, pygame.mixer is used.
mixer.sound.load("sound.mp3")
mixer.sound.play()