Skip to main content

Unified utilities package for MiniCPM-o: includes cosyvoice + stepaudio2 and extensible utils.

Project description

minicpmo-utils

一个统一安装的工具包(一个 PyPI 分发包),把仓库里的 cosyvoicestepaudio2 一起打进同一个 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 cosyvoice
  • import stepaudio2
  • import matcha
  • import minicpmo

也支持通过统一入口导入子包:

from minicpmo import cosyvoice, stepaudio2, matcha

以及通过统一的 utils 入口使用通用工具函数,例如:

from minicpmo.utils import get_video_frame_audio_segments

Project details


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.0.6.tar.gz (821.0 kB view details)

Uploaded Source

File details

Details for the file minicpmo_utils-0.0.6.tar.gz.

File metadata

  • Download URL: minicpmo_utils-0.0.6.tar.gz
  • Upload date:
  • Size: 821.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for minicpmo_utils-0.0.6.tar.gz
Algorithm Hash digest
SHA256 5d856d0ccd1207824313442ca65c9aae2297c1d927b67507096598087755d795
MD5 c823334c9bfb6d7e650f5c3a1377bcab
BLAKE2b-256 0f841936012258daeb21eb28a7c09ef1e1ea05017f669e233ff51996b140a738

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page