diff --git a/extract_f0_print.py b/extract_f0_print.py index d2bc805..f848a0a 100644 --- a/extract_f0_print.py +++ b/extract_f0_print.py @@ -35,7 +35,7 @@ class FeatureInput(object): def compute_f0(self, path, f0_method): # default resample type of librosa.resample is "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 assert sr == self.fs if f0_method == "pm": diff --git a/i18n.py b/i18n.py index 5767d88..ec7a866 100644 --- a/i18n.py +++ b/i18n.py @@ -12,7 +12,7 @@ def load_language_list(language): class I18nAuto: def __init__(self, language=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"): language = "en_US" self.language = language diff --git a/i18n/en_US.json b/i18n/en_US.json index 2666262..61cd54d 100644 --- a/i18n/en_US.json +++ b/i18n/en_US.json @@ -51,7 +51,7 @@ "训练模型": "Train model.", "训练特征索引": "Train feature index.", "一键训练": "One-click training.", - "ckpt处理": "Ckpt processing.", + "ckpt处理": "Ckpt processing", "模型融合, 可用于测试音色融合": "Model fusion, can be used for merging diffrent voices", "A模型路径": "A model path.", "B模型路径": "B model path.",