Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pip3 install gTTS pyttsx3 playsound
- import gtts
- from playsound import playsound
- # in spanish
- tts = gtts.gTTS("Hallo Welt", lang="de")
- tts.save("hola.mp3")
- playsound("hola.mp3")
Advertisement
Add Comment
Please, Sign In to add comment