Skip to main content

A wrapped hifi-gan vocoder for easy use.

Project description

hifigan

A wrapped hifi-gan vocoder for easy use.

Source: https://github.com/jik876/hifi-gan

Install

pip install hifigan-vocoder

Usage

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,)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hifigan-vocoder-0.1.1.tar.gz (565.4 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page