Skip to content

Instantly share code, notes, and snippets.

@kittinan
Created March 16, 2017 02:28
Show Gist options
  • Save kittinan/f516a190710e468e43705e003fcf032f to your computer and use it in GitHub Desktop.
Save kittinan/f516a190710e468e43705e003fcf032f to your computer and use it in GitHub Desktop.
Thai gTTS
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