Metadata-Version: 2.4
Name: cosyvoice2-eu
Version: 0.1.5
Summary: Minimal CosyVoice2 European inference CLI (bundles runtime + Matcha)
Author-email: Tim Luka Horstmann <lukahorstmann@gmx.de>
License: Apache-2.0
Project-URL: homepage, https://huggingface.co/Luka512/CosyVoice2-0.5B-EU
Keywords: tts,text-to-speech,cosyvoice,european,voice-cloning,french,german
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: torch>=2.3
Requires-Dist: torchaudio>=2.3
Requires-Dist: onnxruntime; platform_system != "Linux"
Requires-Dist: onnxruntime-gpu; platform_system == "Linux"
Requires-Dist: openai-whisper
Requires-Dist: hyperpyyaml>=1.2
Requires-Dist: huggingface_hub>=0.24
Requires-Dist: WeTextProcessing>=1.0.3
Requires-Dist: inflect>=7.0
Requires-Dist: numpy==1.26
Requires-Dist: tqdm>=4.66
Requires-Dist: soundfile>=0.12
Requires-Dist: transformers==4.40.1
Requires-Dist: diffusers>=0.29
Requires-Dist: modelscope>=1.20
Requires-Dist: omegaconf>=2.3
Requires-Dist: conformer>=0.3.2
Requires-Dist: hydra-core>=1.3
Requires-Dist: einops>=0.6
Requires-Dist: librosa>=0.10
Requires-Dist: scipy>=1.10
Requires-Dist: matplotlib>=3.6
Requires-Dist: rich>=13.0
Requires-Dist: lightning>=2.0
Requires-Dist: rootutils>=1.0
Requires-Dist: gdown>=4.7
Requires-Dist: wget>=3.2
Requires-Dist: phonemizer>=3.0
Requires-Dist: unidecode>=1.3
Requires-Dist: pyyaml>=6.0
Requires-Dist: deepspeed>=0.10
Requires-Dist: pyarrow>=10.0
Requires-Dist: pyworld>=0.3.0
Provides-Extra: piper
Requires-Dist: piper-phonemize>=1.0; extra == "piper"
Dynamic: license-file

cosyvoice2-eu
====================

Minimal, plug-and-play CosyVoice2 European 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.

Currently supports French, with German support coming soon!

## Features

- **Easy Installation**: Simple `pip install cosyvoice2-eu` command
- **Cross-lingual Voice Cloning**: Clone voices across different European languages
- **French Support**: Currently supports French text-to-speech with voice cloning
- **German Support**: Coming soon!
- **Bundled Runtime**: No need to install the full upstream CosyVoice2 repository
- **Hugging Face Integration**: Automatic model downloading from Hugging Face

## License

This project is licensed under the Apache License 2.0. 

**Note**: This package includes vendored code from:
- [CosyVoice2](https://github.com/FunAudioLLM/CosyVoice2) (Apache 2.0)
- [Matcha-TTS](https://github.com/shivammathur/Matcha-TTS) (Apache 2.0)

All original licenses and attributions are preserved.

## Quick Start

1. **Install the package:**
   ```bash
   pip install cosyvoice2-eu
   ```

2. **Run voice cloning:**
   ```bash
   cosy2-eu \
     --text "Bonjour, je m'appelle Louis! J'aime manger une baguette." \
     --prompt macron.wav \
     --out out.wav
   ```

That's it! The first run will automatically download the model from Hugging Face.

## Installation

### From PyPI (Recommended)

```bash
pip install cosyvoice2-eu
```

### For enhanced English phonemization (optional):
```bash
pip install cosyvoice2-eu[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.

### Development Installation

```bash
cd standalone_infer
pip install -e .
```

## Usage

```bash
cosy2-eu \
  --text "Bonjour, je m'appelle Louis! J'aime manger une baguette." \
  --prompt macron.wav \
  --out out.wav
```

First run will download the model assets to `~/.cache/cosyvoice2-eu` (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`.




