Local audio-to-audio voice conversion for Neiroha, powered by RVC v1/v2.
On Windows x64 with an NVIDIA driver compatible with CUDA 12.8, clone with
git clone --recurse-submodules, install Pixi 0.76 or newer, then run:
pixi run install
pixi run serveInstall downloads the CUDA 12.8 PyTorch 2.10.0 runtime and verifies the pinned
HuBERT and RMVPE assets. Ordinary startup uses local files. On a CPU machine
the same environment can use device = "cpu" in configs/server.toml.
Put an exported RVC checkpoint at models/weights/default.pth, or add a model
preset and a voice set in configs/. Set speaker_id to the numeric ID in
the checkpoint. An added FAISS index can be assigned to each voice.
- API at
http://127.0.0.1:19001(OpenAPI at/docs) - Gradio Admin at
http://127.0.0.1:17801 start_api_admin.batstarts the configured surface from a source checkoutpixi run testandpixi run smoke --audio path/to/source.wavverify the API
For a plumbing test without a trained role checkpoint, run pixi run python scripts/download_assets.py --preset smoke, then pixi run python scripts/prepare_smoke_model.py to export the official pretrained v2 generator.
See API and model sources.
Run pixi run python scripts/prepare_multispeaker.py DATASET EXPERIMENT to
prepare the manifest and model config from Name_ID_Repeat folders. The speaker
embedding size grows to fit the maximum ID. The command prints the path to the
patched upstream engine. Create the experiment in its logs/ directory and use the
upstream training CLI
with its training dependencies and assets. The patched export preserves the
actual embedding size and high speaker IDs.
Point a model preset at the exported checkpoint. Generate its voice set with
pixi run python scripts/import_checkpoint_voices.py PRESET VOICE_SET --index-dir models/indices.
Voice IDs default to speaker-<ID>. The tool also matches per-speaker indexes
named added_*_spkid<ID>.index.
Extract all volumes into a common location and run start_portable.bat. The
runtime includes Python, the pinned RVC engine, and base model assets. CUDA
requires a Windows NVIDIA driver supporting CUDA 12.8. CPU mode can be selected
in the server config. Build the archive and SHA-256 sums with pixi run python scripts/package_portable.py --smoke-model to include the pretrained smoke model.
Every exported RVC .pth under models/ has its own model ID. A file in the
root uses its stem as the name. Nested files sort by path and use folder names
plus the checkpoint stem when needed to distinguish versions. The same layout
works under models/weights/. The character picker lists the selected model's
speakers and index options as Model: Speaker.
For a multi-speaker checkpoint, use _spkid<N>.index to bind retrieval indexes
to the speaker. Several indexes for one speaker are separate choices. Retrieval
uses a default rate of 0.5 for a discovered index.
An optional adjacent checkpoint.json can set name and description, and
contain speakers entries with a numeric id, name, and an index or list
of indexes. Index paths are relative to the checkpoint and must remain under
models/. See the Chinese README for a complete example.
Existing TOML registrations and saved work-level IDs remain valid for conversion. The discovery catalog lists the separate checkpoints. Refresh in Neiroha after adding or editing model files.
Run start_portable.bat preview or pixi run preview and open http://127.0.0.1:17803. Select a model and target voice, then upload audio to convert. Refresh the model list after adding weights.
Set the bind address and port in [preview] in configs/server.toml.