VoxCPM 1.5.0 macOS

Python 版本

bash 复制代码
 python3 --version
bash 复制代码
Python 3.11.13
bash 复制代码
python3 -c "import torch; print(f'PyTorch: {torch.__version__}'); print(f'MPS Available: {torch.backends.mps.is_available()}'); print(f'MPS Built: {torch.backends.mps.is_built()}')" 2>/dev/null || echo "PyTorch 未安装"
bash 复制代码
PyTorch: 2.9.0
MPS Available: True
MPS Built: True
bash 复制代码
python3 -c "import torchaudio; print(f'TorchAudio: {torchaudio.__version__}')" 2>/dev/null || echo "TorchAudio 未安装"
bash 复制代码
TorchAudio: 2.9.0

卸载现有版本

bash 复制代码
pip uninstall voxcpm -y
bash 复制代码
Found existing installation: voxcpm 1.0.5
Uninstalling voxcpm-1.0.5:
  Successfully uninstalled voxcpm-1.0.5

重新安装

bash 复制代码
pip install voxcpm

启动 Web

bash 复制代码
python app.py
bash 复制代码
🚀 Running on device: cpu
funasr version: 1.2.7.
Downloading Model from https://www.modelscope.cn to directory: /Users/m4/.cache/modelscope/hub/models/iic/SenseVoiceSmall
2025-12-27 22:47:19,955 - modelscope - WARNING - Using branch: master as version is unstable, use with caution
WARNING:root:trust_remote_code: False
* Running on local URL:  http://localhost:7860
* To create a public link, set `share=True` in `launch()`.

下载模型

  • 下载到项目 models 目录
bash 复制代码
python3 -c "
from modelscope import snapshot_download
model_dir = snapshot_download('OpenBMB/VoxCPM1.5', cache_dir='./models')
print(f'Model downloaded to: {model_dir}')
"
bash 复制代码
python3 -c "import transformers; print(f'transformers: {transformers.__version__}')"
bash 复制代码
transformers: 4.57.1

降级 transformers 到兼容版本

bash 复制代码
pip install "transformers>=4.36.2,<4.50"
bash 复制代码
python3 -c "import transformers; print(f'transformers: {transformers.__version__}')"
transformers: 4.49.0

降级 NumPy 到 1.x 版本

bash 复制代码
pip install "numpy<2"

pip install "numpy<2" -i https://pypi.tuna.tsinghua.edu.cn/simple

datasets 库版本

bash 复制代码
pip install "datasets==2.18.0" -i https://pypi.tuna.tsinghua.edu.cn/simple

开始生成

相关推荐
pe7er3 天前
macOS 应用无法打开(权限问题)解决方案
macos·mac
harmful_sheep6 天前
mac生效的终端查看
macos
iOS门童6 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~6 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员6 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl843946 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei7 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利7 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o
ShikiSuen7 天前
macOS 的 CpLk 中英切换卡顿的元凶在 InputMethodKit 本身
macos
xiayutian_c7 天前
如虎添翼-MacOS
macos