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.2.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.2-py3-none-any.whl (179.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cosyvoice2_fr_infer-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 93c4b559c785e91a2468a0777512688da09fed9f48b757b03ca50d65de186282
MD5 6eed00ef8f8a3cfb28b62c6854e12410
BLAKE2b-256 c0e56fbfd6261f68f00cf3934da4ad02442377b61aeab63d88f01bc7a9873c4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cosyvoice2_fr_infer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c1723536a6739c0bfcc5176711dc2ae127629f2531740ceafb0d6ad5ab34b53
MD5 866cee76b9146f1d0f49c924871c993a
BLAKE2b-256 5899fb364217950041c8ae91c3bed432b3c2cbb5c6a05f7ca09d142fe2447f70

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