torchfcpe
The official Pytorch implementation of Fast Context-based Pitch Estimation (FCPE)
Decision gist · record as of 2026-08-14
Yes, if you need robust pitch estimation in PyTorch. The package has low install friction, permissive licensing, and no known vulnerabilities. However, maintenance is aging—the last release was March 2024 with no recent commits—so expect limited support for bugs or compatibility issues with newer PyTorch versions. Suitable for research and production use where pitch extraction is a component, not a primary concern.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires torch and torchaudio as runtime dependencies; audio input must be a torch.Tensor with appropriate shape and sample rate.
- Low friction installation with a pure Python wheel.
- Maintenance status is aging—last release was 2024-03-06 and the repository shows no recent commits, though it remains unarchived with 210 stars.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you retain the license notice.
last release 2024-03-06 (891 days) · last repo commit 2025-10-14 · 210 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 143,468 downloads/mo, #11,177 on PyPI
Alternatives
Verify before relying
pip install torchfcpe
from torchfcpe import spawn_bundled_infer_model
import torch
model = spawn_bundled_infer_model(device='cpu')
f0 = model.infer(audio, sr=16000, decoder_mode='local_argmax', threshold=0.006)- Whether the bundled model weights are automatically downloaded on first use or require manual setup.
- Supported audio formats and preprocessing requirements beyond the librosa example shown.
- Performance characteristics (inference speed, memory usage) on typical hardware.
- Whether Python version constraints exist despite requires_python being unspecified.
What it is and what it does
TorchFCPE is a PyTorch implementation of Fast Context-based Pitch Estimation (FCPE), a neural network model for extracting fundamental frequency (F0) from audio signals. It's designed for both speech and music analysis, taking raw audio waveforms and producing frame-by-frame pitch estimates. The package wraps a pre-trained model accessible via `spawn_bundled_infer_model()`, which you can then call with audio tensors and configuration parameters like sample rate, decoder mode, and frequency bounds.
The model itself is a standard PyTorch module, so it integrates with the PyTorch ecosystem—you can move it between devices, compile it, or fine-tune it like any other `torch.nn.Module`. It depends on einops and local-attention for its internal computations, and expects audio as a PyTorch tensor. The inference API accepts optional parameters for V/UV (voiced/unvoiced) thresholding, frequency range constraints, and output interpolation.
Use it for
- Extract pitch contours from speech recordings for prosody analysis or voice conversion pipelines.
- Estimate fundamental frequency from musical recordings for melody extraction or music analysis.
- Preprocess audio for singing voice synthesis or pitch-based audio effects.
- Build real-time pitch tracking systems by integrating the model into streaming audio applications.
- Validate or compare pitch estimates from other methods in audio research workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need robust pitch estimation in PyTorch.
The package has low install friction, permissive licensing, and no known vulnerabilities. However, maintenance is aging—the last release was March 2024 with no recent commits—so expect limited support for bugs or compatibility issues with newer PyTorch versions. Suitable for research and production use where pitch extraction is a component, not a primary concern.
Install
torchfcpe on PyPI
Before you install
Low friction installation with a pure Python wheel. Maintenance status is aging—last release was 2024-03-06 and the repository shows no recent commits, though it remains unarchived with 210 stars.
Requires torch and torchaudio as runtime dependencies; audio input must be a torch.Tensor with appropriate shape and sample rate.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you retain the license notice.
Quickstart
pip install torchfcpe
from torchfcpe import spawn_bundled_infer_model
import torch
model = spawn_bundled_infer_model(device='cpu')
f0 = model.infer(audio, sr=16000, decoder_mode='local_argmax', threshold=0.006)
Verify before relying
- Whether the bundled model weights are automatically downloaded on first use or require manual setup.
- Supported audio formats and preprocessing requirements beyond the librosa example shown.
- Performance characteristics (inference speed, memory usage) on typical hardware.
- Whether Python version constraints exist despite requires_python being unspecified.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packageseinopslocal-attentiontorchtorchaudionumpy |
| Maintenance | Aging 891 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 143,468 / month, #11,177 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT License |
Evidence: torchfcpe-0.0.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pitch detection audio”
- torchfcpeTorchFCPE estimates fundamental frequency (pitch) from audio using a…
- torchcrepePyTorch implementation of the CREPE pitch tracker that estimates…
- aubioaubio is a Python wrapper around a C library for music and audio…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also torchcrepe · aubio · pyloudnorm · pyworld · basic-pitch · torchlibrosa · pyrubberband · torchaudio · torch-stoi · stftpitchshift