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

Uploaded Source

File details

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

File metadata

  • Download URL: minicpmo_utils-0.1.2.tar.gz
  • Upload date:
  • Size: 819.6 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.1.2.tar.gz
Algorithm Hash digest
SHA256 cd6e4b29a577eb144a6edde799e65064f7f18000d385d3a4ff0aff7827f89b94
MD5 efdc171b98be96c4da89f19bdd7246e1
BLAKE2b-256 68d1db4549db9d88d8900ef82a4dfd4159f05fe0b6079aa81e6fefd104828e71

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