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:
- 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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cosyvoice2_fr_infer-0.1.4.tar.gz.
File metadata
- Download URL: cosyvoice2_fr_infer-0.1.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b6cd7d3a37ecc3825e84d5b61a7ae1f65a26a21e6c2f4443d25fb86a875f9e5
|
|
| MD5 |
0728ab8aec2e146ba18aa41c3218336d
|
|
| BLAKE2b-256 |
ccdd69920e1f3fb39ec8cf7e9b3c870c5ded880714e3b7ae595ef88844952f5c
|
File details
Details for the file cosyvoice2_fr_infer-0.1.4-py3-none-any.whl.
File metadata
- Download URL: cosyvoice2_fr_infer-0.1.4-py3-none-any.whl
- Upload date:
- Size: 179.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec0876019e6b5de25448247a94ae9abe08f0a25fad0e92e5d8b057b1f881bccd
|
|
| MD5 |
ede3fb8b17a2a71d5aaa9801ae8774f3
|
|
| BLAKE2b-256 |
38fd8b6ab3a366b04552a51b493b26d0d15c66d15c857a07f3c84aebbf18b48d
|