Unified utilities package for MiniCPM-o: includes cosyvoice + stepaudio2 and extensible utils.
Project description
minicpmo-utils
一个统一安装的工具包(一个 PyPI 分发包),把仓库里的 cosyvoice 与 stepaudio2 一起打进同一个 wheel,并预留 minicpmo 作为后续扩展 utils 的统一入口。
安装方式
- 从源码本地安装(开发态,可编辑,默认只装公共依赖):
cd minicpmo-utils
pip install -e .
- 如果只想安装 cosyvoice 相关依赖(TTS):
pip install -e .[tts]
- 如果只想安装 stepaudio2 / streaming 相关依赖:
pip install -e .[streaming]
- 同时安装 cosyvoice + stepaudio2 相关依赖:
pip install -e .[tts,streaming]
- 构建并安装 wheel(推荐分发):
cd minicpmo-utils
python -m build # 生成 dist/*.whl
pip install \"dist/minicpmo_utils-0.1.0-py3-none-any.whl[tts,streaming]\"
导入方式
包会暴露以下顶层模块,安装后可直接使用:
import cosyvoiceimport stepaudio2import matchaimport minicpmo
也支持通过统一入口导入子包:
from minicpmo import cosyvoice, stepaudio2, matcha
以及通过统一的 utils 入口使用通用工具函数,例如:
from minicpmo.utils import get_video_frame_audio_segments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
minicpmo_utils-1.0.3.tar.gz
(820.1 kB
view details)
File details
Details for the file minicpmo_utils-1.0.3.tar.gz.
File metadata
- Download URL: minicpmo_utils-1.0.3.tar.gz
- Upload date:
- Size: 820.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55ed1d9501f58ded0199ad58642847a50c749d2ab0413712a3341930249f8a85
|
|
| MD5 |
209a62a72b428d0732d61f7cd821ac77
|
|
| BLAKE2b-256 |
addca9bc5e4ed3a3a33b03078a76e131d7a324ffc0468e8f1e224db305989490
|