LibreAI / Audio / hifi-gan
// audio · jik876/hifi-gan

hifi-gan

hifi-gan est un projet de audio open source, créé par jik876 (jik876/hifi-gan sur GitHub). Il compte 2 373 étoiles sur GitHub et 560 forks, il est publié sous la licence MIT et a été mis à jour pour la dernière fois sur GitHub le 27 juillet 2024.

GAN vocoder that turns mel-spectrograms into high-fidelity speech audio, fast enough for real-time use.

★ 2,4 k étoiles⑂ 560 forksMITmis à jour juil. 2024
▦ visuel — le README de ce projet ne contient aucune capture intégrable,
voici donc un emplacement réservé. Le guide ci-dessous est complet malgré tout.
// détails du projet

Détails du projet

Étoiles GitHub
2 373
Forks
560
Licence
MIT
Dernière mise à jour sur GitHub
27 juillet 2024
Catégorie
Audio
Type de fiche
Guide d'installation complet
// fonctionnement

Comment ça marche

  1. Clarify your goal

    Decide whether you need inference with a pretrained checkpoint, fine-tuning on your own voice data, or training from scratch.

  2. Get the project

    Clone the repository and install the Python requirements; for training, download the LJ Speech dataset and place its wavs as documented.

  3. Install and configure

    Download a pretrained model folder that matches your use case, such as a universal model or one fine-tuned for Tacotron2 mel-spectrograms.

  4. Run your first task

    Run inference from wav files or mel-spectrograms, or start training with one of the bundled V1, V2, or V3 configurations.

// fonctionnalités

Pourquoi on l'adore

High-fidelity waveform generation

A GAN generator designed around periodic patterns in audio, producing 22.05 kHz speech the paper reports as close to human quality in listening tests.

Pretrained models included

Checkpoints for LJSpeech, VCTK, and a universal model, including versions fine-tuned on Tacotron2-generated mel-spectrograms.

Two inference modes

inference.py reconstructs audio from wav-derived features, while inference_e2e.py synthesises speech directly from mel-spectrogram files for end-to-end TTS.

Fine-tuning workflow

Generate mel-spectrograms with a model such as Tacotron2, place them in the fine-tuning dataset folder, and continue training with the fine-tuning flag.

Three generator configurations

Bundled config_v1, config_v2, and config_v3 JSON files trade model size and speed against quality.

Transfer-learning base

The universal model ships with discriminator weights intended as a starting point for adapting to new datasets.

Advertisement
// lancez-le

Lancez-le vous-même

  1. Clone and install requirements

    Python 3.6 or newer is required; install the dependencies from requirements.txt.

    git clone https://github.com/jik876/hifi-gan.git
    cd hifi-gan
    pip install -r requirements.txt
  2. Train or fine-tune (optional)

    Train with a bundled config, or fine-tune a checkpoint on your own mel-spectrograms.

    python train.py --config config_v1.json
    python train.py --fine_tuning True --config config_v1.json
  3. Run inference

    Put wav files in test_files (or mel files in test_mel_files) and generate audio with a checkpoint.

    python inference.py --checkpoint_file [generator checkpoint file path]
    python inference_e2e.py --checkpoint_file [generator checkpoint file path]
// cas d'usage

Ce que vous pouvez créer

Advertisement
// faq

Questions fréquentes

Who maintains it?

It is maintained by jik876 (Jungil Kong) and collaborators, as the official open-source release accompanying the HiFi-GAN paper.

Is it free to use?

Yes. It is MIT-licensed, including the provided pretrained models, so research and commercial use are permitted.

Does it need a paid API key?

No. HiFi-GAN runs entirely locally in PyTorch; there are no API keys or hosted services involved.

How does it compare to a well-known alternative?

WaveGlow and MelGAN are earlier neural vocoders the authors drew on; HiFi-GAN focuses on modelling periodic audio patterns to reach higher fidelity at much faster than real-time generation.

How do I get started?

Clone the repo, pip install -r requirements.txt, download a pretrained model, and run inference.py or inference_e2e.py with its checkpoint.

// continuez l'exploration

Outils similaires

Audio

fastrtc

FastRTC turns any Python function into a real-time audio or video stream over WebRTC or WebSockets

★ 4,6 k étoilesMIT
Voir le guide →
Audio

Real-Time-Voice-Cloning

Clone a voice from 5 seconds of audio and generate arbitrary speech in real time

★ 60,2 k étoilesNOASSERTION
Voir le guide →
Audio

cheetah

On-device streaming speech-to-text engine for real-time apps.

★ 670 étoilesApache-2.0
Voir le guide →
Audio

voxt

A macOS voice assistant that turns speech into actions and notes.

★ 853 étoilesCustom
Voir le guide →
Audio

MOSS-TTS-Nano

MOSS-TTS-Nano: a 0.1B open multilingual speech model that clones voices and streams in real time on CPU

★ 4,5 k étoilesApache-2.0
Voir le guide →
Audio

gTTS

gTTS — Python library and CLI that turns text into spoken mp3 via Google Translate's speech API

★ 2,6 k étoilesMIT
Voir le guide →
// alternatives

Alternatives en Audio

Les autres projets de la catégorie Audio avec le plus d'étoiles du catalogue LibreAI — la sélection réaliste d'alternatives si hifi-gan ne vous convient pas.

// plus en audio

Plus en Audio

Projets de la catégorie Audio proches dans le catalogue, les plus proches en étoiles de hifi-gan — continuez à explorer de part et d'autre.

Obtenir hifi-gan

Gratuit et ouvert : récupérez le code source, mettez une étoile au dépôt et commencez à créer.