MiniXC / simple_hifigan

2 stars 1 forks source link

Simple HiFiGAN

Please cite the HiFiGAN paper when using this.

A simple wrapper for the this HiFiGAN Implementation. This wrapper just adds an interface to the model.

Installation

pip install git+https://github.com/MiniXC/simple_hifigan.git

Usage


from simple_hifigan import Synthesiser

synthesiser = Synthesiser()

# create a mel spectrogram
mel_spectrogram = synthesiser.wav_to_mel(
    some_audio, some_sample_rate
)

# multiple mel spectrograms
mel_spectrograms = synthesiser.wavs_to_mels(
    some_audios, some_sample_rate
)

# mel spectrogram to audio
audio = synthesiser(mel_spectrogram)