RMVPE pitch estimator — pure ONNX Runtime inference
Project description
rmvpe-onnx
RMVPE pitch estimator — pure ONNX Runtime inference, no PyTorch required.
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 install rmvpe-onnx # Python API only
pip install rmvpe-onnx[cli] # with CLI tool
[!TIP] Includes
onnxruntime(CPU). For hardware acceleration (CUDA, DirectML, etc.), install a compatible ONNX Runtime variant. See the ONNX Runtime documentation.
CLI
# Download the ONNX model
# [optional] auto-downloaded on first predict if skipped
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.1.0.tar.gz.
File metadata
- Download URL: rmvpe_onnx-0.1.0.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b06bbef5b61a5633de6aa215e93261f4f03bed0a57f6d3e7b45e45e788507c4
|
|
| MD5 |
7ecdaed909956bf7eb5306a18de31c2a
|
|
| BLAKE2b-256 |
9bf7f6127dcccd97b92fee11912f524878ff052cec0f7677ec30d87b6a724e73
|
Provenance
The following attestation bundles were made for rmvpe_onnx-0.1.0.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.1.0.tar.gz -
Subject digest:
9b06bbef5b61a5633de6aa215e93261f4f03bed0a57f6d3e7b45e45e788507c4 - Sigstore transparency entry: 1262416805
- Sigstore integration time:
-
Permalink:
NewComer00/rmvpe-onnx@2321899072e560870353449683ca8e826d19cdc4 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/NewComer00
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2321899072e560870353449683ca8e826d19cdc4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rmvpe_onnx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rmvpe_onnx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.2 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 |
e3365c052eaa560579f920982893edc5af81ba48b939786f1966c8ac2cd4363a
|
|
| MD5 |
c5183cc02b54802cb1b3fdd3c9007857
|
|
| BLAKE2b-256 |
3a121478d2c220d4e684028a58c236b86d071e83b035219aa13edab0d226f507
|
Provenance
The following attestation bundles were made for rmvpe_onnx-0.1.0-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.1.0-py3-none-any.whl -
Subject digest:
e3365c052eaa560579f920982893edc5af81ba48b939786f1966c8ac2cd4363a - Sigstore transparency entry: 1262416813
- Sigstore integration time:
-
Permalink:
NewComer00/rmvpe-onnx@2321899072e560870353449683ca8e826d19cdc4 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/NewComer00
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2321899072e560870353449683ca8e826d19cdc4 -
Trigger Event:
push
-
Statement type: