Downloads · 30 days
57
23% of all-time downloads
soniqo/WeSpeaker-ResNet34-LM-LiteRT
WeSpeaker-ResNet34-LM-LiteRT is a audio classification model from soniqo. Use it for the audio classification task on the model card, and read the license before you ship it in a product. It is set up for litert. The card lists the license as cc-by-4.0.
Speaker embedding for speaker identification and diarization clustering.
Downloads · 30 days
57
23% of all-time downloads
All-time downloads
249
Public
Repo size
26.6 MB
Likes
0
Public
Click a slice to open those files.
.tflite26.6 MB · 100%
From the Hugging Face model README
Speaker embedding for speaker identification and diarization clustering.
Part of the soniqo.audio speech toolkit — an open, runtime-portable stack for speech AI. This bundle is the LiteRT export, designed to plug into the abstract interfaces in
speech-core(C++ voice-agent orchestration library). Browse all LiteRT bundles in the soniqo LiteRT collection.
256-dim speaker embedding network for Android, ported from
pyannote/wespeaker-voxceleb-resnet34-LM.
| Property | Value |
|---|---|
| Architecture | ResNet34 + stats pooling + linear projection |
| Parameters | ~6.6 M |
| Format | LiteRT (TFLite) |
| Quantization | float32 |
| Sample rate | 16 000 Hz |
| Input | 80-bin kaldi-style mel fbank features (T frames) |
| Output | L2-normalized 256-dim embedding |
| File | Size | Description |
|---|---|---|
wespeaker-resnet34.tflite | 25.4 MB | Full model, FP32 |
config.json | 1 KB | Fbank spec + I/O signature |
pyannote's kaldi fbank implementation uses torch.hamming_window and
aten._fft_r2c, neither of which has a lowering in litert-torch. We
export only the ResNet34 portion; the caller computes the 80-bin fbank
features on-device. This matches the standard mobile speaker-embedding
pattern and keeps the tflite graph free of FFT ops.
| Parameter | Value |
|---|---|
num_mel_bins | 80 |
frame_length | 25 ms |
frame_shift | 10 ms |
window_type | hamming |
dither | 0.0 |
use_energy | false |
The reference implementation is torchaudio.compliance.kaldi.fbank with
those arguments. The model internally applies features - mean(features, dim=1)
centering so the caller may pass raw (uncentered) fbank output.
Inputs:
fbank [1, T, 80] float32 Kaldi mel fbank, T=298 for 3 s @ 16 kHz
Outputs:
embedding [1, 256] float32 L2-normalized speaker embedding
Verified max diff = 4.2e-07 vs the upstream pyannote model's full forward
on a random 3-second waveform (with kaldi fbank features computed
externally).
// Compute 80-bin kaldi fbank features on-device with your preferred library
val fbank = kaldiFbank(audio, melBins = 80, frameLengthMs = 25, frameShiftMs = 10)
val model = Interpreter(loadModelFile("wespeaker-resnet34.tflite"))
val embedding = FloatArray(256)
model.run(fbank, embedding)
Upstream: pyannote/wespeaker-voxceleb-resnet34-LM (CC BY 4.0, gated — accept the license on the upstream page).
STTInterface / TTSInterface / VADInterface / EnhancerInterface; LiteRT implementations plug straight into the interfaces.ASR / Transcription
VAD / Diarization
TTS / Voice Cloning
This bundle inherits the upstream model license (cc-by-4.0). See the
linked base_model repository for the full terms.