Skip to content

A new UTAU resampler based on pc-nsf-hifigan and straycatresampler for virtual singer.

License

Notifications You must be signed in to change notification settings

milbk/hifisampler

 
 

Repository files navigation

hifisampler

A new UTAU resampler based on pc-nsf-hifigan for virtual singer.

For Jinriki please use our Hachimisampler

Why is it called hifisampler?

Hifisampler was modified from straycatresampler, replacing the original WORLD with pc-nsf-hifigan.

What makes pc-nsf-hifigan different from traditional vocoders?

Pc-nsf-hifigan employs neural networks to upsample the input features, offering clearer audio quality than traditional vocoders. It is an improvement over the traditional nsf-hifigan, supporting f0 inputs that do not match mel, making it suitable for UTAU resampling.

How to use?

  1. Install Python 3.10 and run the following commands (it's strongly recommended to use conda for easier environment management):
pip install -r requirements.txt
  1. Download the CUDA version of PyTorch from the Torch website (If you're certain about only using the ONNX version, then downloading the CPU version of PyTorch is fine).
  2. Fill out the config.toml. (config.toml, hifisampler.exe, hifiserver.py and launch_server.py should be in the same directory, for now. It is suggested to keep the original file hierarchy as in the compressed file)
  3. Download the release, unzip it, and run 'hifiserver.py'.
  4. Set UTAU's resampler to hifisampler.exe.

Implemented flags

  • g: Adjust gender/formants.
    • Range: -600 to 600 | Default: 0
  • B: Adjust breath/noise.
    • Range: 0 to 500 | Default: 100
  • V: Adjust voice/harmonic.
    • Range: 0 to 150 | Default: 100
  • G: Force to regenerate feature cache(Ignoring existed cache).
    • No value needed
  • Me: Enable Mel spectrum loop mode.
    • No value needed

Acknowledgments:

About

A new UTAU resampler based on pc-nsf-hifigan and straycatresampler for virtual singer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.4%
  • C# 9.9%
  • Dockerfile 1.7%