Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Fixed gTTS due to google.cn refusing gTTS requests #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chinese/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def download(self):
return basename(self.path)

def get_google(self):
tts = gTTS(self.text, lang=self.lang, tld='cn')
tts = gTTS(self.text, lang=self.lang, tld='com')
try:
tts.save(self.path)
except gTTSError as e:
Expand Down