A new UTAU resampler based on pc-nsf-hifigan for virtual singer.
For Jinriki please use our Hachimisampler.
Hifisampler was modified from straycatresampler, replacing the original WORLD with pc-nsf-hifigan.
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.
Three installation methods are provided; choose the one that best suits your needs and preferences.
-
Download the latest release package and extract it. Run
start.batto start the rendering service. -
If you're using the experimental server auto-start feature (Optional, but not recommended), keep
config.default.yaml,hifiserver.py,hifisampler.exe, andlaunch_server.pyin the same directory. It's best to keep the original file structure after extracting the release. For OpenUTAU, you can create a symbolic link to placehifisampler.exein the Resamplers folder.mklink "C:\[OpenUTAU Path]\Resamplers\hifisampler.exe" "C:\[Project Path]\hifisampler.exe"
-
Set the UTAU resampler to
hifisampler.exeand ensure the rendering service is running.
-
Install
uvfollowing the instructions in the uv documentation. -
Download and extract the source code from the latest release. Then, navigate into the extracted folder.
-
Download model files from release assets. Unzip and place it in the project folder.
-
Fill in the configuration details in
config.yaml. If this is your first time using the software, modifyconfig.default.yamlinstead. Theconfig.yamlfile will be automatically generated upon the first run. -
Depending on your hardware, you can select a suitable CUDA version for acceleration. To do this, modify the
tool.uv.sourcessection inpyproject.toml. For example, to enable CUDA acceleration:[tool.uv.sources] torch = [ { index = "pytorch-cu128" }, ]
If you're using the CPU version, set it as follows:
[tool.uv.sources] torch = [ { index = "pytorch-cpu" }, ]
-
If you're using the experimental server auto-start feature (Optional, but not recommended), keep
config.default.yaml,hifiserver.py,hifisampler.exe, andlaunch_server.pyin the same directory. It's best to keep the original file structure after extracting the release. For OpenUTAU, you can create a symbolic link to placehifisampler.exein the Resamplers folder.mklink "C:\[OpenUTAU Path]\Resamplers\hifisampler.exe" "C:\[Project Path]\hifisampler.exe"
-
Before each use, run
hifiserver.pyto start the rendering service. If you're using the experimental server auto-start feature, you can skip this step. Enter the following command in your terminal:uv run hifiserver.py
-
Set the resampler in UTAU to
hifisampler.exeand ensure the rendering service is running.
-
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
-
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).
-
Download model files from release assets. Unzip and place it in the project folder.
-
If you're using the experimental server auto-start feature (Optional, but not recommended), keep
config.default.yaml,hifiserver.py,hifisampler.exe, andlaunch_server.pyin the same directory. It's best to keep the original file structure after extracting the release. For OpenUTAU, you can create a symbolic link to placehifisampler.exein the Resamplers folder.mklink "C:\[OpenUTAU Path]\Resamplers\hifisampler.exe" "C:\[Project Path]\hifisampler.exe"
-
Download the release, unzip it, and run 'hifiserver.py'.
-
Set UTAU's resampler to
hifisampler.exe.
- g: Adjust gender/formants.
- Range:
-600to600| Default:0
- Range:
- Hb: Adjust breath/noise.
- Range:
0to500| Default:100
- Range:
- Hv: Adjust voice/harmonic.
- Range:
0to150| Default:100
- Range:
- HG: Vocal fry/growl.
- Range:
0to100| Default:0
- Range:
- P: Normalize loudness at the note level, targeting -16 LUFS. Enable this by setting
wave_normtotruein yourconfig.yamlfile.- Range:
0to100| Default:100
- Range:
- t: Shift the pitch by a specific amount, in cents. 1 cent = 1/100 of a semitone.
- Range:
-1200to1200| Default:0
- Range:
- Ht: Adjust tension.
- Range:
-100to100| Default:0
- Range:
- A: Modulating the amplitude based on pitch variations, which helps creating a more realistic vibrato.
- Range:
-100to100| Default:0
- Range:
- G: Force to regenerate feature cache (Ignoring existed cache).
- No value needed
- He: Enable Mel spectrum loop mode.
- No value needed
Note: The flags B and V were renamed to Hb and Hv respectively because they conflict with other UTAU flags but have different definitions.
- If using server-side auto-start (Experimental), closing the terminal window or rendering process during server startup may cause the server to freeze. You can try manually releasing the file lock on
hifisampler.exe. We recommend manually starting the rendering service using./start.batto avoid issues.
- yjzxkxdn
- openvpi for the pc-nsf-hifigan
- MinaminoTenki
- Linkzerosss
- MUTED64
- mili-tan