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-0.1.1.tar.gz
(819.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minicpmo_utils-0.1.1.tar.gz.
File metadata
- Download URL: minicpmo_utils-0.1.1.tar.gz
- Upload date:
- Size: 819.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7630a27f8e863c3de30a0bdd248a081a127d3715800e8fa67b866196d2296079
|
|
| MD5 |
383923160ed9568ff885171f8e1201ec
|
|
| BLAKE2b-256 |
ca274375ec43383bda46c84bb404c8402ae106f08664245a27e47d5b0cf92a81
|
File details
Details for the file minicpmo_utils-0.1.1-py3-none-any.whl.
File metadata
- Download URL: minicpmo_utils-0.1.1-py3-none-any.whl
- Upload date:
- Size: 885.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52b446b71eee7b156dde826db1d26f5ad7302e9e28bb55da107ac36bb30ec55c
|
|
| MD5 |
4bc399072f5fb97d566b3a652cf8d466
|
|
| BLAKE2b-256 |
2c86922d644a0ee375de52a298c494b28b8573af61060cf5a02eaceb33f27e15
|