cosyvoice2-eu


Namecosyvoice2-eu JSON
Version 0.1.5 PyPI version JSON
download
home_pageNone
SummaryMinimal CosyVoice2 European inference CLI (bundles runtime + Matcha)
upload_time2025-08-08 19:43:42
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseApache-2.0
keywords tts text-to-speech cosyvoice european voice-cloning french german
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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`.





            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cosyvoice2-eu",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "tts, text-to-speech, cosyvoice, european, voice-cloning, french, german",
    "author": null,
    "author_email": "Tim Luka Horstmann <lukahorstmann@gmx.de>",
    "download_url": "https://files.pythonhosted.org/packages/ae/cc/b74b2d179cf3cc131d91f5083805a8c2c28d3bfad1210aad79901131021c/cosyvoice2_eu-0.1.5.tar.gz",
    "platform": null,
    "description": "cosyvoice2-eu\n====================\n\nMinimal, 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.\n\nCurrently supports French, with German support coming soon!\n\n## Features\n\n- **Easy Installation**: Simple `pip install cosyvoice2-eu` command\n- **Cross-lingual Voice Cloning**: Clone voices across different European languages\n- **French Support**: Currently supports French text-to-speech with voice cloning\n- **German Support**: Coming soon!\n- **Bundled Runtime**: No need to install the full upstream CosyVoice2 repository\n- **Hugging Face Integration**: Automatic model downloading from Hugging Face\n\n## License\n\nThis project is licensed under the Apache License 2.0. \n\n**Note**: This package includes vendored code from:\n- [CosyVoice2](https://github.com/FunAudioLLM/CosyVoice2) (Apache 2.0)\n- [Matcha-TTS](https://github.com/shivammathur/Matcha-TTS) (Apache 2.0)\n\nAll original licenses and attributions are preserved.\n\n## Quick Start\n\n1. **Install the package:**\n   ```bash\n   pip install cosyvoice2-eu\n   ```\n\n2. **Run voice cloning:**\n   ```bash\n   cosy2-eu \\\n     --text \"Bonjour, je m'appelle Louis! J'aime manger une baguette.\" \\\n     --prompt macron.wav \\\n     --out out.wav\n   ```\n\nThat's it! The first run will automatically download the model from Hugging Face.\n\n## Installation\n\n### From PyPI (Recommended)\n\n```bash\npip install cosyvoice2-eu\n```\n\n### For enhanced English phonemization (optional):\n```bash\npip install cosyvoice2-eu[piper]\n```\n\n**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.\n\nIf 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.\n\n### Development Installation\n\n```bash\ncd standalone_infer\npip install -e .\n```\n\n## Usage\n\n```bash\ncosy2-eu \\\n  --text \"Bonjour, je m'appelle Louis! J'aime manger une baguette.\" \\\n  --prompt macron.wav \\\n  --out out.wav\n```\n\nFirst run will download the model assets to `~/.cache/cosyvoice2-eu` (configurable via `--model-dir`).\n\nAdvanced options: `--setting`, `--llm-run-id`, `--flow-run-id`, `--hifigan-run-id`, `--final`, `--stream`, `--speed`, `--no-text-frontend`, `--repo-id`, `--no-hf`.\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Minimal CosyVoice2 European inference CLI (bundles runtime + Matcha)",
    "version": "0.1.5",
    "project_urls": {
        "homepage": "https://huggingface.co/Luka512/CosyVoice2-0.5B-EU"
    },
    "split_keywords": [
        "tts",
        " text-to-speech",
        " cosyvoice",
        " european",
        " voice-cloning",
        " french",
        " german"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "96e685ef7878cf5868e36102da3ad8c5ae777398b9a12e927f104b5747f78a77",
                "md5": "2444373caaa7735e870bec5391ee8980",
                "sha256": "26adc068b715d4c2517adb51dde3c4f8cf1dff00730238fc832acd60ae10c2a7"
            },
            "downloads": -1,
            "filename": "cosyvoice2_eu-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2444373caaa7735e870bec5391ee8980",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 180058,
            "upload_time": "2025-08-08T19:43:39",
            "upload_time_iso_8601": "2025-08-08T19:43:39.108496Z",
            "url": "https://files.pythonhosted.org/packages/96/e6/85ef7878cf5868e36102da3ad8c5ae777398b9a12e927f104b5747f78a77/cosyvoice2_eu-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "aeccb74b2d179cf3cc131d91f5083805a8c2c28d3bfad1210aad79901131021c",
                "md5": "ff5c9d0475fb7c9a18e0ab05fa00eb1f",
                "sha256": "15a892b5daaf5b05186f67e392f101a5073d3ea60d384994693d68f7e81daa00"
            },
            "downloads": -1,
            "filename": "cosyvoice2_eu-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "ff5c9d0475fb7c9a18e0ab05fa00eb1f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 138468,
            "upload_time": "2025-08-08T19:43:42",
            "upload_time_iso_8601": "2025-08-08T19:43:42.567706Z",
            "url": "https://files.pythonhosted.org/packages/ae/cc/b74b2d179cf3cc131d91f5083805a8c2c28d3bfad1210aad79901131021c/cosyvoice2_eu-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-08 19:43:42",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "cosyvoice2-eu"
}
        
Elapsed time: 0.83818s