mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-09-04 15:00:00 +08:00
Compare commits
3 Commits
fe25a61f1a
...
971cb454f1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
971cb454f1 | ||
|
|
48b1a0169a | ||
|
|
c70f091182 |
@ -31,7 +31,7 @@ def get_first(text: str) -> str:
|
||||
return text
|
||||
|
||||
|
||||
def merge_short_text_in_array(texts: str, threshold: int) -> list:
|
||||
def merge_short_text_in_array(texts: List[str], threshold: int) -> list:
|
||||
if (len(texts)) < 2:
|
||||
return texts
|
||||
result = []
|
||||
|
||||
@ -13,7 +13,7 @@ normalizer = lambda x: cn2an.transform(x, "an2cn")
|
||||
current_file_path = os.path.dirname(__file__)
|
||||
pinyin_to_symbol_map = {
|
||||
line.split("\t")[0]: line.strip().split("\t")[1]
|
||||
for line in open(os.path.join(current_file_path, "opencpop-strict.txt")).readlines()
|
||||
for line in open(os.path.join(current_file_path, "opencpop-strict.txt"), encoding="utf-8").readlines()
|
||||
}
|
||||
|
||||
import jieba_fast
|
||||
|
||||
@ -14,7 +14,7 @@ normalizer = lambda x: cn2an.transform(x, "an2cn")
|
||||
current_file_path = os.path.dirname(__file__)
|
||||
pinyin_to_symbol_map = {
|
||||
line.split("\t")[0]: line.strip().split("\t")[1]
|
||||
for line in open(os.path.join(current_file_path, "opencpop-strict.txt")).readlines()
|
||||
for line in open(os.path.join(current_file_path, "opencpop-strict.txt"), encoding="utf-8").readlines()
|
||||
}
|
||||
|
||||
import jieba_fast
|
||||
|
||||
@ -18,7 +18,7 @@ g2p_en
|
||||
torchaudio
|
||||
modelscope
|
||||
sentencepiece
|
||||
transformers>=4.43,<=4.50
|
||||
transformers>=4.51,<5
|
||||
peft<0.18.0
|
||||
chardet
|
||||
PyYAML
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user