Merge branch 'main' into patch-9

This commit is contained in:
Ftps 2023-04-22 21:34:36 +09:00 committed by GitHub
commit 3d8f281bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ class FeatureInput(object):
def compute_f0(self, path, f0_method): def compute_f0(self, path, f0_method):
# default resample type of librosa.resample is "soxr_hq". # default resample type of librosa.resample is "soxr_hq".
# Quality: soxr_vhq > soxr_hq # Quality: soxr_vhq > soxr_hq
x, sr = librosa.load(path, self.fs, res_type='soxr_vhq') x, sr = librosa.load(path, self.fs)#, res_type='soxr_vhq'
p_len = x.shape[0] // self.hop p_len = x.shape[0] // self.hop
assert sr == self.fs assert sr == self.fs
if f0_method == "pm": if f0_method == "pm":

View File

@ -12,7 +12,7 @@ def load_language_list(language):
class I18nAuto: class I18nAuto:
def __init__(self, language=None): def __init__(self, language=None):
if language in ['auto', None]: if language in ['auto', None]:
language = locale.getlocale()[0] language = locale.getdefaultlocale()[0]#getlocale can't identify the system's language ((None, None))
if not os.path.exists(f"./i18n/{language}.json"): if not os.path.exists(f"./i18n/{language}.json"):
language = "en_US" language = "en_US"
self.language = language self.language = language

View File

@ -51,7 +51,7 @@
"训练模型": "Train model.", "训练模型": "Train model.",
"训练特征索引": "Train feature index.", "训练特征索引": "Train feature index.",
"一键训练": "One-click training.", "一键训练": "One-click training.",
"ckpt处理": "Ckpt processing.", "ckpt处理": "Ckpt processing",
"模型融合, 可用于测试音色融合": "Model fusion, can be used for merging diffrent voices", "模型融合, 可用于测试音色融合": "Model fusion, can be used for merging diffrent voices",
"A模型路径": "A model path.", "A模型路径": "A model path.",
"B模型路径": "B model path.", "B模型路径": "B model path.",