TorchcrepeV2
My own version of crepe, SOTA pitch tracking tool in PyTorch.
Install / Use
/learn @gudgud96/TorchcrepeV2README
TorchCrepeV2
My own version of crepe in PyTorch, SOTA pitch tracking tool. Releasing as pip package for ease of usage.
Only full version of model is supported.
Similar project: https://github.com/maxrmorrison/torchcrepe
Usage
pip install torchcrepeV2
from torchcrepeV2 import TorchCrepePredictor
import librosa
import numpy as np
import matplotlib.pyplot as plt
y, sr = librosa.load("some_audio.wav", sr=16000)
torch_crepe = TorchCrepePredictor(device="cuda")
# all arguments are aligned with original crepe implementation
f = torch_crepe.predict(audio=y,
sr=sr,
viterbi=True,
center=True,
step_size=10)
# can add some post-processing
block_size = 100
length = y.shape[0] // 100
if f.shape[-1] != length:
f = np.interp(
np.linspace(0, 1, length, endpoint=False),
np.linspace(0, 1, f.shape[-1], endpoint=False),
f,
)
plt.plot(f, label='torchcrepe')
plt.show()
Results
Tracked pitch nearly identical as compared to crepe.


TODO
- [ ] Add unit tests
Related Skills
node-connect
330.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
330.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
81.4kCommit, push, and open a PR
