RikkaBotan
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -194,21 +194,21 @@ with open("configs/paths.yml", "w", encoding="utf-8") as f:
|
|
194 |
from style_bert_vits2.nlp import bert_models
|
195 |
from style_bert_vits2.constants import Languages
|
196 |
|
197 |
-
bert_models.load_model(Languages.ZH, "
|
198 |
-
bert_models.load_tokenizer(Languages.ZH, "
|
199 |
|
200 |
# save model files to model_assets dir
|
201 |
from pathlib import Path
|
202 |
from huggingface_hub import hf_hub_download
|
203 |
|
204 |
-
model_file = "
|
205 |
config_file = "config.json"
|
206 |
style_file = "style_vectors.npy"
|
207 |
|
208 |
for file in [model_file, config_file, style_file]:
|
209 |
print(file)
|
210 |
hf_hub_download(
|
211 |
-
"RikkaBotan/
|
212 |
file,
|
213 |
local_dir="model_assets"
|
214 |
)
|
@@ -226,7 +226,7 @@ model = TTSModel(
|
|
226 |
device="cuda" # If you cannot use cuda, please input cpu
|
227 |
)
|
228 |
|
229 |
-
# Please input the
|
230 |
from IPython.display import Audio, display
|
231 |
|
232 |
sr, audio = model.infer(text="please write text here")
|
|
|
194 |
from style_bert_vits2.nlp import bert_models
|
195 |
from style_bert_vits2.constants import Languages
|
196 |
|
197 |
+
bert_models.load_model(Languages.ZH, "hfl/chinese-roberta-wwm-ext-large")
|
198 |
+
bert_models.load_tokenizer(Languages.ZH, "hfl/chinese-roberta-wwm-ext-large")
|
199 |
|
200 |
# save model files to model_assets dir
|
201 |
from pathlib import Path
|
202 |
from huggingface_hub import hf_hub_download
|
203 |
|
204 |
+
model_file = "rikka_botan_chinese.safetensors"
|
205 |
config_file = "config.json"
|
206 |
style_file = "style_vectors.npy"
|
207 |
|
208 |
for file in [model_file, config_file, style_file]:
|
209 |
print(file)
|
210 |
hf_hub_download(
|
211 |
+
"RikkaBotan/style_bert_vits2_chinese_original",
|
212 |
file,
|
213 |
local_dir="model_assets"
|
214 |
)
|
|
|
226 |
device="cuda" # If you cannot use cuda, please input cpu
|
227 |
)
|
228 |
|
229 |
+
# Please input the Chinese text
|
230 |
from IPython.display import Audio, display
|
231 |
|
232 |
sr, audio = model.infer(text="please write text here")
|