# hifigan
A wrapped hifi-gan vocoder for easy use.
Source: https://github.com/jik876/hifi-gan
# Install
```bash
pip install hifigan-vocoder
```
# Usage
```python
from hifigan_vocoder import hifigan, get_sample_mel
mel = get_sample_mel()
print(mel.shape) # torch.Size([1, 80, 2062])
model = hifigan(dataset='uni', device='cpu') # dataset in ['uni', 'vctk']; device in ['cpu', 'cuda']; checkpoint will be downloaded from google driver.
audio = model.infer(mel)
print(mel.shape) # (527872,)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/mushanshanshan/hifigan",
"name": "hifigan-vocoder",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "None",
"author": "Mushan",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/5a/b8/32ea760c822bba527b8c878f287ff8321ac21e88912eee440c83ec310269/hifigan-vocoder-0.1.1.tar.gz",
"platform": null,
"description": "# hifigan\nA wrapped hifi-gan vocoder for easy use. \n\nSource: https://github.com/jik876/hifi-gan\n\n# Install\n\n```bash\npip install hifigan-vocoder\n```\n\n# Usage\n```python\n\nfrom hifigan_vocoder import hifigan, get_sample_mel\n\nmel = get_sample_mel()\nprint(mel.shape) # torch.Size([1, 80, 2062])\n\nmodel = hifigan(dataset='uni', device='cpu') # dataset in ['uni', 'vctk']; device in ['cpu', 'cuda']; checkpoint will be downloaded from google driver.\n\naudio = model.infer(mel)\nprint(mel.shape) # (527872,)\n\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A wrapped hifi-gan vocoder for easy use.",
"version": "0.1.1",
"split_keywords": [
"none"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "8e4992962fe45b90681c79eb55ca9803",
"sha256": "e837d0e9b7ff634a701af85b09d54e43a84d7f077dc556311191f3cdfc1bca4b"
},
"downloads": -1,
"filename": "hifigan_vocoder-0.1.1-py3-none-manylinux1_x86_64.whl",
"has_sig": false,
"md5_digest": "8e4992962fe45b90681c79eb55ca9803",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 572902,
"upload_time": "2022-12-03T13:39:06",
"upload_time_iso_8601": "2022-12-03T13:39:06.751584Z",
"url": "https://files.pythonhosted.org/packages/b8/5c/eac8761488bc04a12f61a939ff51b86b8faa55c5bf03684de5373adc3f7d/hifigan_vocoder-0.1.1-py3-none-manylinux1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "4048d158a86dde1506699b97e9cc033e",
"sha256": "08711a9f351116292d892abf28d8c9449934a87b2d912cab4f7e601901e1af54"
},
"downloads": -1,
"filename": "hifigan-vocoder-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "4048d158a86dde1506699b97e9cc033e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 565439,
"upload_time": "2022-12-03T13:39:10",
"upload_time_iso_8601": "2022-12-03T13:39:10.295465Z",
"url": "https://files.pythonhosted.org/packages/5a/b8/32ea760c822bba527b8c878f287ff8321ac21e88912eee440c83ec310269/hifigan-vocoder-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-03 13:39:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "mushanshanshan",
"github_project": "hifigan",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "numpy",
"specs": []
},
{
"name": "torch",
"specs": []
},
{
"name": "gdown",
"specs": []
}
],
"lcname": "hifigan-vocoder"
}