RMVPE pitch estimator — pure ONNX Runtime inference
Project description
rmvpe-onnx
RMVPE pitch estimator with ONNX Runtime backend.
A simple wrapper around ONNX-related code in rvc/lib/rmvpe.py @ 7e03261, RVC-Project/Retrieval-based-Voice-Conversion
Copyright (c) 2023 liujing04, 源文雨, Ftps — MIT License
ONNX model from lj1995/VoiceConversionWebUI
Copyright (c) 2022 lj1995 — MIT License
Install
pip
pip install rmvpe-onnx # Python API only
pip install "rmvpe-onnx[cli]" # Python API with CLI tool
uv
uv add rmvpe-onnx # Python API only
uv add "rmvpe-onnx[cli]" # Python API with CLI tool
[!TIP] This package includes
onnxruntime(CPU) as a dependency, which is sufficient for most use cases. For hardware acceleration (CUDA, DirectML, etc.), please install a compatible ONNX Runtime variant. See the ONNX Runtime documentation.
Development
git clone https://github.com/NewComer00/rmvpe-onnx && cd rmvpe-onnx
uv sync --extra dev
# Optional: Run all tests
# uv run tox
CLI
# Optional: Download the ONNX model
# Will be done automatically on first prediction if not done manually
rmvpe-onnx download
# Run pitch prediction with default settings and plot the results
rmvpe-onnx predict audio.wav --plot
For all options, see the CLI Reference or run rmvpe-onnx download --help and rmvpe-onnx predict --help.
Python API
[!NOTE] The Python API returns raw outputs with no confidence thresholding applied. Use
confidenceto filterfrequencyyourself if needed.
from rmvpe_onnx import RMVPE
import soundfile as sf
audio, sr = sf.read("audio.wav")
rmvpe = RMVPE()
time, frequency, confidence, activation = rmvpe.predict(audio=audio, sr=sr)
# Optional: Zero out frequency where confidence is below a threshold
# frequency[confidence < 0.03] = 0.0
For full parameter reference and return values, see the API Reference.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rmvpe_onnx-0.2.3.tar.gz.
File metadata
- Download URL: rmvpe_onnx-0.2.3.tar.gz
- Upload date:
- Size: 194.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d0686ba93379bfe4697a5d357d20e0261c3824f5594238f822571ce16e276a6
|
|
| MD5 |
e0aac8a9fe2240d2dc49b6f6233c1695
|
|
| BLAKE2b-256 |
7677c1db6f25a10c7c7a6090318fb722768130c0e3bafd045190e07de3e58b65
|
Provenance
The following attestation bundles were made for rmvpe_onnx-0.2.3.tar.gz:
Publisher:
publish.yml on NewComer00/rmvpe-onnx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rmvpe_onnx-0.2.3.tar.gz -
Subject digest:
4d0686ba93379bfe4697a5d357d20e0261c3824f5594238f822571ce16e276a6 - Sigstore transparency entry: 1278478348
- Sigstore integration time:
-
Permalink:
NewComer00/rmvpe-onnx@a16200fd8b90aec04ba3e5691fcdd808f74259a8 -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/NewComer00
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a16200fd8b90aec04ba3e5691fcdd808f74259a8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rmvpe_onnx-0.2.3-py3-none-any.whl.
File metadata
- Download URL: rmvpe_onnx-0.2.3-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d2d48d64ad06d447169fcfcfbd83fb9d2b91c0702084bc49cef57b783b7eef6
|
|
| MD5 |
27ce4517aa9e26b0afd06e9805130124
|
|
| BLAKE2b-256 |
4803ff6007031c21dc10cb0e9a432b4ad17ab0bf91130b3e84f4826ab10ab3b2
|
Provenance
The following attestation bundles were made for rmvpe_onnx-0.2.3-py3-none-any.whl:
Publisher:
publish.yml on NewComer00/rmvpe-onnx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rmvpe_onnx-0.2.3-py3-none-any.whl -
Subject digest:
9d2d48d64ad06d447169fcfcfbd83fb9d2b91c0702084bc49cef57b783b7eef6 - Sigstore transparency entry: 1278478350
- Sigstore integration time:
-
Permalink:
NewComer00/rmvpe-onnx@a16200fd8b90aec04ba3e5691fcdd808f74259a8 -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/NewComer00
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a16200fd8b90aec04ba3e5691fcdd808f74259a8 -
Trigger Event:
push
-
Statement type: