mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-05-07 04:09:06 +08:00
Merge branch 'main' into patch-9
This commit is contained in:
commit
3d8f281bce
@ -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":
|
||||||
|
2
i18n.py
2
i18n.py
@ -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
|
||||||
|
@ -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.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user