lvc


Namelvc JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/fakerybakery/lvc
SummaryUnofficial pip package for zero-shot voice conversion
upload_time2024-04-17 02:28:31
maintainerNone
docs_urlNone
authormrfakename
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LVC

Unofficial pip-installable Python package for [LVC-VC](https://github.com/wonjune-kang/lvc-vc) (zero-shot voice conversion) by Wonjune Kang, Mark Hasegawa-Johnson, Deb Roy.

## Installation

```
pip install lvc
```

## Usage

You can either convert files or convert arrays.

### Convert Files

```python
from lvc import LVC, LVCAudio
l = LVC()

l.infer_file(
    'orig.wav',
    'sample.wav',
    'target.wav',
)
```

### Convert Arrays

```python
from lvc import LVC, LVCAudio
import librosa
import soundfile as sf
l = LVC()

o_y, o_sr = librosa.load('orig.wav')
s_y, s_sr = librosa.load('sample.wav')

o, sr = l.infer_array(
    LVCAudio(o_y, o_sr),
    LVCAudio(s_y, s_sr),
)
sf.write('out.wav', o, sr)
```

### Don't use XL model

You can optionally use a smaller model for lower-quality but faster results:

```python
l = LVC(use_xl_model=False) # default True
```

## License

MIT

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fakerybakery/lvc",
    "name": "lvc",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "mrfakename",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/08/f6/63a21093679849c8c1e600d231db834e0eee10c4a785bd1d2c43148a7215/lvc-1.0.3.tar.gz",
    "platform": null,
    "description": "# LVC\n\nUnofficial pip-installable Python package for [LVC-VC](https://github.com/wonjune-kang/lvc-vc) (zero-shot voice conversion) by Wonjune Kang, Mark Hasegawa-Johnson, Deb Roy.\n\n## Installation\n\n```\npip install lvc\n```\n\n## Usage\n\nYou can either convert files or convert arrays.\n\n### Convert Files\n\n```python\nfrom lvc import LVC, LVCAudio\nl = LVC()\n\nl.infer_file(\n    'orig.wav',\n    'sample.wav',\n    'target.wav',\n)\n```\n\n### Convert Arrays\n\n```python\nfrom lvc import LVC, LVCAudio\nimport librosa\nimport soundfile as sf\nl = LVC()\n\no_y, o_sr = librosa.load('orig.wav')\ns_y, s_sr = librosa.load('sample.wav')\n\no, sr = l.infer_array(\n    LVCAudio(o_y, o_sr),\n    LVCAudio(s_y, s_sr),\n)\nsf.write('out.wav', o, sr)\n```\n\n### Don't use XL model\n\nYou can optionally use a smaller model for lower-quality but faster results:\n\n```python\nl = LVC(use_xl_model=False) # default True\n```\n\n## License\n\nMIT\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Unofficial pip package for zero-shot voice conversion",
    "version": "1.0.3",
    "project_urls": {
        "Homepage": "https://github.com/fakerybakery/lvc"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86446b2aae84c0b1cc0421b7c67f123a52f72918b12f0812553e264d58e9e58c",
                "md5": "854bfde087ca666e9f6247fb94d27bf4",
                "sha256": "87ba2c1073f43e52222d75b6a7e090b35b3586aa29123f5554db2d0ef4785e08"
            },
            "downloads": -1,
            "filename": "lvc-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "854bfde087ca666e9f6247fb94d27bf4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 44986,
            "upload_time": "2024-04-17T02:28:29",
            "upload_time_iso_8601": "2024-04-17T02:28:29.838996Z",
            "url": "https://files.pythonhosted.org/packages/86/44/6b2aae84c0b1cc0421b7c67f123a52f72918b12f0812553e264d58e9e58c/lvc-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "08f663a21093679849c8c1e600d231db834e0eee10c4a785bd1d2c43148a7215",
                "md5": "8b296fa3130e1a69f8c739eb75c7f1e0",
                "sha256": "b3eba0117c95080f8273f532b74249684075df5196b0b1dc8febcf52eb5bc834"
            },
            "downloads": -1,
            "filename": "lvc-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "8b296fa3130e1a69f8c739eb75c7f1e0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 34841,
            "upload_time": "2024-04-17T02:28:31",
            "upload_time_iso_8601": "2024-04-17T02:28:31.644883Z",
            "url": "https://files.pythonhosted.org/packages/08/f6/63a21093679849c8c1e600d231db834e0eee10c4a785bd1d2c43148a7215/lvc-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-17 02:28:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fakerybakery",
    "github_project": "lvc",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "lvc"
}
        
Elapsed time: 0.21329s