Geocrack

tts

Jun 27th, 2022
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. #pip3 install gTTS pyttsx3 playsound
  2.  
  3. import gtts
  4. from playsound import playsound
  5.  
  6. # in spanish
  7. tts = gtts.gTTS("Hallo Welt", lang="de")
  8. tts.save("hola.mp3")
  9. playsound("hola.mp3")
Advertisement
Add Comment
Please, Sign In to add comment