Add espeak support for Chinese (#1905)

* fix description

* add espeak support for chinese

* add espeak support for chinese
This commit is contained in:
happylittlecat 2022-09-08 18:32:41 +08:00 committed by GitHub
parent 5abbe56642
commit 4546b4cbd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -94,6 +94,8 @@ class ESpeak(BasePhonemizer):
# band-aid for backwards compatibility
if language == "en":
language = "en-us"
if language == "zh-cn":
language = "cmn"
super().__init__(language, punctuations=punctuations, keep_puncs=keep_puncs)
if backend is not None:

View File

@ -42,7 +42,7 @@ class ZH_CN_Phonemizer(BasePhonemizer):
@staticmethod
def supported_languages() -> Dict:
return {"zh-cn": "Japanese (Japan)"}
return {"zh-cn": "Chinese (China)"}
def version(self) -> str:
return "0.0.1"