Add zh:zh in fallbacks as it is present in the preset of language on the main page
This commit is contained in:
1 parent
a495c0a239
commit
201f03e4f8
1 file changed
+1
-2
+1
-2
@@ -44,9 +44,8 @@ from langdetect.lang_detect_exception import LangDetectException
|
|||||||
from config import AlltalkConfig, AlltalkTTSEnginesConfig
|
from config import AlltalkConfig, AlltalkTTSEnginesConfig
|
||||||
logging.disable(logging.WARNING)
|
logging.disable(logging.WARNING)
|
||||||
|
|
||||||
DetectorFactory.seed = 0 # Ensure deterministic behavior
|
DetectorFactory.seed = 0 # Ensure deterministic behavior of language detector
|
||||||
|
|
||||||
# Mapping of detected languages to xtts-supported languages
|
|
||||||
LANG_FALLBACKS = {
|
LANG_FALLBACKS = {
|
||||||
"en": "en", "es": "es", "fr": "fr", "de": "de", "it": "it",
|
"en": "en", "es": "es", "fr": "fr", "de": "de", "it": "it",
|
||||||
"pt": "pt", "pl": "pl", "tr": "tr", "ru": "ru", "nl": "nl",
|
"pt": "pt", "pl": "pl", "tr": "tr", "ru": "ru", "nl": "nl",
|
||||||
|
|||||||
Reference in new issue
Block a user