Created
March 16, 2017 02:28
-
-
Save kittinan/f516a190710e468e43705e003fcf032f to your computer and use it in GitHub Desktop.
Thai gTTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gtts import gTTS | |
import os | |
tts = gTTS(text='สวัสดี ภาษาไทย', lang='th') | |
tts.save('hello-thai.mp3') | |
os.system('mpg321 hello-thai.mp3') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment