Unofficial pip package for zero-shot voice conversion
Project description
LVC
Unofficial pip-installable Python package for 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
from lvc import LVC, LVCAudio
l = LVC()
l.infer_file(
'orig.wav',
'sample.wav',
'target.wav',
)
Convert Arrays
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:
l = LVC(use_xl_model=False) # default True
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lvc-1.0.3.tar.gz
(34.8 kB
view details)
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
lvc-1.0.3-py3-none-any.whl
(45.0 kB
view details)
File details
Details for the file lvc-1.0.3.tar.gz.
File metadata
- Download URL: lvc-1.0.3.tar.gz
- Upload date:
- Size: 34.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3eba0117c95080f8273f532b74249684075df5196b0b1dc8febcf52eb5bc834
|
|
| MD5 |
8b296fa3130e1a69f8c739eb75c7f1e0
|
|
| BLAKE2b-256 |
08f663a21093679849c8c1e600d231db834e0eee10c4a785bd1d2c43148a7215
|
File details
Details for the file lvc-1.0.3-py3-none-any.whl.
File metadata
- Download URL: lvc-1.0.3-py3-none-any.whl
- Upload date:
- Size: 45.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ba2c1073f43e52222d75b6a7e090b35b3586aa29123f5554db2d0ef4785e08
|
|
| MD5 |
854bfde087ca666e9f6247fb94d27bf4
|
|
| BLAKE2b-256 |
86446b2aae84c0b1cc0421b7c67f123a52f72918b12f0812553e264d58e9e58c
|