TextToSpeech In python (Swedish, English, Spanish, You can change the language easy!)

Introduction

This is a small project that takes User Input To say a thing in the language you pick

Code Samples

Use this line to change lang if you want to make a other lang then SV, EN, ES tts = gtts.gTTS(f"{TEXT}", lang="en") Change the en to something else you can find the supported languages here: https://gtts.readthedocs.io/en/latest/module.html#languages-gtts-lang

Installation

You need to run one command in the terminal: pip3 install gTTS pyttsx3 playsound