update readme

This commit is contained in:
Labmem-Zhouyx
2026-04-08 18:48:58 +08:00
parent 68af4fe502
commit 6d10932b09
3 changed files with 10 additions and 9 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
launch.json
__pycache__
voxcpm.egg-info
.DS_Store
.DS_Store
./pretrained_models/
+4 -4
View File
@@ -123,12 +123,12 @@ pip install modelscope
```
```python
from modelscope.hub.snapshot_download import snapshot_download
from modelscope import snapshot_download
snapshot_download("OpenBMB/VoxCPM2", local_dir='./pretrained_models/VoxCPM2') # specify the local directory to save the model
from voxcpm import VoxCPM
import soundfile as sf
local_model_dir = snapshot_download("OpenBMB/VoxCPM2")
model = VoxCPM.from_pretrained(local_model_dir, load_denoiser=False)
model = VoxCPM.from_pretrained("./pretrained_models/VoxCPM2", load_denoiser=False)
wav = model.generate(
text="VoxCPM2 is the current recommended release for realistic multilingual speech synthesis.",
+4 -4
View File
@@ -122,12 +122,12 @@ pip install modelscope
```
```python
from modelscope.hub.snapshot_download import snapshot_download
from modelscope import snapshot_download
snapshot_download("OpenBMB/VoxCPM2", local_dir='./pretrained_models/VoxCPM2') # 指定模型保存的本地路径
from voxcpm import VoxCPM
import soundfile as sf
local_model_dir = snapshot_download("OpenBMB/VoxCPM2")
model = VoxCPM.from_pretrained(local_model_dir, load_denoiser=False)
model = VoxCPM.from_pretrained('./pretrained_models/VoxCPM2', load_denoiser=False)
wav = model.generate(
text="VoxCPM2 是目前推荐使用的多语言语音合成版本。",