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 .

For enhanced English phonemization (optional):

pip install -e .[piper]

Note: The piper optional dependency requires compilation tools and may fail in some environments (like Google Colab). The package will work without it, using the standard phonemizer as fallback.

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.

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.3.tar.gz (137.8 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.3-py3-none-any.whl (179.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cosyvoice2_fr_infer-0.1.3.tar.gz
  • Upload date:
  • Size: 137.8 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.3.tar.gz
Algorithm Hash digest
SHA256 28f95e975ee95b960bb54f30fa23402f6289431463fa3c567c49a65e7e6f96ee
MD5 40de2a80b53eff22ec485fa729fbd453
BLAKE2b-256 e4ab9cf1a3cfb6509c6d9bb19cc28fa40a6cc1639e187472432788165afc22fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cosyvoice2_fr_infer-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d90f7d31a33085fb932ffecb66f06f72c7062ac9f59d242436cc5c9148e42201
MD5 86133ebf3af0d2e9c6c4aacf0c79032b
BLAKE2b-256 c3d8aaa70110af100ffcbe6bd09a25202aac9c1b77f955ecfcb08d038df6064c

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