Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import gtts
- from playsound import playsound
- tts = gtts.gTTS('who are you?', lang='en')
- # save the audio file
- tts.save("hello.mp3")
- # play the audio file
- playsound("hello.mp3")
- # all available languages along with their IETF tag
- print(gtts.lang.tts_langs())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement