Skip to main content

Minimal CosyVoice2 French inference CLI (bundles runtime + Matcha)

Project description

cosyvoice2-fr-infer

Minimal, plug-and-play CosyVoice2 French inference CLI that downloads the model from Hugging Face and runs cross-lingual cloning. It bundles the required cosyvoice runtime and matcha module so you don't need the full upstream repo.

License

This project is licensed under the Apache License 2.0.

Note: This package includes vendored code from:

All original licenses and attributions are preserved.

Install (editable for local dev)

cd standalone_infer
pip install -e .

If you are on Linux with GPU, ensure you install torch/torchaudio matching your CUDA and have onnxruntime-gpu available. If CPU-only, onnxruntime will be sufficient.

Usage

cosy2-tts \
  --text "Bonjour, je m'appelle ..." \
  --prompt /path/to/prompt.wav \
  --out /tmp/out.wav

First run will download the model assets to ~/.cache/cosyvoice2-fr (configurable via --model-dir).

Advanced options: --setting, --llm-run-id, --flow-run-id, --hifigan-run-id, --final, --stream, --speed, --no-text-frontend, --repo-id, --no-hf.

Publish to PyPI

  1. Build the wheel and sdist:
pip install build twine
python3 -m build
  1. Upload to TestPyPI (recommended first):
python3 -m twine upload --repository testpypi dist/*
  1. Upload to PyPI:
python3 -m twine upload dist/*

End-users can then install via:

pip install cosyvoice2-fr-infer
# GPU users may first install torch/torchaudio from the CUDA index
# pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu121

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

cosyvoice2_fr_infer-0.1.1.tar.gz (137.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cosyvoice2_fr_infer-0.1.1-py3-none-any.whl (179.7 kB view details)

Uploaded Python 3

File details

Details for the file cosyvoice2_fr_infer-0.1.1.tar.gz.

File metadata

  • Download URL: cosyvoice2_fr_infer-0.1.1.tar.gz
  • Upload date:
  • Size: 137.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for cosyvoice2_fr_infer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 39be214bca799189bdb09936e79ded2c26da449733e71a132d679fee42cf0e42
MD5 26ffe842c97d5369fb53e4c80cac0a38
BLAKE2b-256 18ade5891aacdcfba57f5fb012fcff9849499e32e25eb308b1ed9ed070bc3df2

See more details on using hashes here.

File details

Details for the file cosyvoice2_fr_infer-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cosyvoice2_fr_infer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1f3b8f0af2e45a67c48d7d606798a73ab58fd14ea783bbc53fd53859bb4c0b1
MD5 9da79de3a8b42e12f15185cba332fc24
BLAKE2b-256 94553c49cbf37c5ca044b927f5953e13dd8f7735c4166ca3e3289ec90d07d710

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