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:
- CosyVoice2 (Apache 2.0)
- Matcha-TTS (Apache 2.0)
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.
Metadata
Release files for cosyvoice2-fr-infer 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cosyvoice2_fr_infer-0.1.5.tar.gz | 137.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cosyvoice2_fr_infer-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 317.6 kB
Release files / cosyvoice2_fr_infer-0.1.5.tar.gz
| Download URL | cosyvoice2_fr_infer-0.1.5.tar.gz |
|---|---|
| Size | 137.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3aa1a1526bb791d248adb986bddb6810e81101b4df8490f6b255f0bdc2ca141b
|
|
BLAKE2b-256 checksum How to use checksums |
d0c7a8af69dfd9e7a90d348e6b53002b12da819b62affa4e61f9ebe9735175e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Release files / cosyvoice2_fr_infer-0.1.5-py3-none-any.whl
| Download URL | cosyvoice2_fr_infer-0.1.5-py3-none-any.whl |
|---|---|
| Size | 179.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05134b815638b256bfd3ad3f7d20de394339b69c3803824c5be684a2dab6d0f2
|
|
BLAKE2b-256 checksum How to use checksums |
4ae925e800dd9ca80c291b92ba62997b20b322da385be9cac0e68577be607279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|