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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cosyvoice2_fr_infer-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 3aa1a1526bb791d248adb986bddb6810e81101b4df8490f6b255f0bdc2ca141b
MD5 87508b1337a34847899a747c2241ae0a
BLAKE2b-256 d0c7a8af69dfd9e7a90d348e6b53002b12da819b62affa4e61f9ebe9735175e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cosyvoice2_fr_infer-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 05134b815638b256bfd3ad3f7d20de394339b69c3803824c5be684a2dab6d0f2
MD5 50a94020098fcc1551be8819c60829ee
BLAKE2b-256 4ae925e800dd9ca80c291b92ba62997b20b322da385be9cac0e68577be607279

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