Resemblyzer
Analyze and compare voices with deep learning
What it is and what it does
Resemblyzer is a voice analysis library that uses a pretrained deep learning model to convert audio into a fixed-size embedding—a 256-dimensional vector that captures the essential characteristics of a speaker's voice. It wraps PyTorch and relies on librosa for audio processing, numpy for numerical operations, and webrtcvad for voice activity detection. The package is designed to work on CPU or GPU and handles noisy audio robustly.
The primary use case is voice-based identity and similarity tasks: you can compare two audio samples to determine how similar the speakers sound, verify that a new recording matches a reference voice profile, identify which speaker is talking at each moment in a multi-speaker recording, or detect whether speech is genuine or artificially generated. Developers can also use the embeddings as feature vectors for downstream machine learning tasks like accent analysis or voice cloning.
Use it for:
- Speaker verification: build a voice profile from 5–30 seconds of reference audio and reject new recordings with low similarity scores.
- Speaker diarization: determine who is speaking when in a multi-speaker recording by comparing voice profiles.
- Fake speech detection: compare suspicious audio against known genuine samples to flag synthetic or spoofed speech.
- Voice similarity metric: compute a numerical similarity score between two audio samples for clustering or ranking.
- Feature extraction: use embeddings as input vectors for downstream ML tasks like gender or accent classification.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Resemblyzer generates a 256-value embedding that summarizes voice characteristics from audio, enabling speaker verification, diarization, and voice similarity comparisons through a pretrained deep learning model.
Yes, if you need voice similarity or speaker identification. The package is stable, permissively licensed, and has low install friction. Maintenance is dormant but the code is mature and no vulnerabilities are known. Choose it if your use case aligns with English-language speaker analysis; be aware that non-English performance is not guaranteed and the project is not actively developed.
Install
resemblyzer on PyPI
pip
pip install resemblyzeruv
uv add resemblyzerpoetry
poetry add resemblyzerInstalling Resemblyzer
Before you install
Low install friction with a pure-Python wheel. Maintenance is dormant (last commit 2023-10-12, 1037 days ago), but the repository remains active with 3298 stars and no recent breaking changes indicated.
License in practice
Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
from resemblyzer import VoiceEncoder, preprocess_wav
from pathlib import Path
fpath = Path("audio_file.wav")
wav = preprocess_wav(fpath)
encoder = VoiceEncoder()
embed = encoder.embed_utterance(wav)
Requires Python 3.5+. Runtime dependencies include torch, librosa, numpy, scipy, and webrtcvad; torch installation may require additional system setup depending on GPU availability.
Verify before relying
- Whether the pretrained model weights are downloaded automatically on first use or require manual setup.
- Current performance characteristics on non-English languages beyond the stated 'somewhat decently' claim.
- Whether GPU acceleration is automatic or requires explicit configuration.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.5) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — librosa, numpy, webrtcvad, torch, scipy, typing |
| Maintenance | dormant — 1,037 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 324,662/month — #7,593 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: Resemblyzer-0.1.4-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
pyannote-audioSpeaker diarization toolkit that identifies and…
unclear · top 5,000 on PyPI
whisperxWhisperX performs fast automatic speech…
permissive · top 5,000 on PyPI
omnivoiceOmniVoice generates speech from text in over…
permissive · top 15,000 on PyPI
pyannote-metricsEvaluates and analyzes speaker diarization…
unclear · top 5,000 on PyPI
chatterbox-ttsChatterbox TTS converts text to speech using…
permissive · top 15,000 on PyPI
speechbrainSpeechBrain is a PyTorch-based toolkit for…
permissive · top 5,000 on PyPI
pyannote-coreProvides data structures for representing and…
unclear · top 5,000 on PyPI
sentence-transformersComputes embeddings and reranking scores for…
permissive · top 1,000 on PyPI
voxcpmVoxCPM2 is a tokenizer-free text-to-speech…
permissive · top 15,000 on PyPI
coqui-ttsCoqui TTS synthesizes speech from text using…
copyleft · top 15,000 on PyPI