Kora v1: Russian Speech Anti-Spoofing Model

Author: Muhammad Temirbolatov (@thetemirbolatov)

Overview

Kora v1 is an acoustic deepfake detection and anti-spoofing model fine-tuned for the Russian language. Unlike standard anti-spoofing systems evaluated solely on clean studio recordings, Kora v1 is engineered to operate under degraded telecommunication conditions, including low-bitrate messenger codecs (Opus), narrowband cellular channels, and ambient microphone noise.

The architecture is built upon microsoft/wavlm-base (94.7M parameters) with a binary sequence classification head (REAL_HUMAN vs. DEEPFAKE_AI), enabling low-latency, on-device inference without transmitting sensitive voice data to external servers.


Model Architecture & Specifications

Parameter Specification
Base Backbone microsoft/wavlm-base
Task Binary Audio Classification (0: Human, 1: Synthetic)
Input Sample Rate 16,000 Hz (Mono PCM)
Context Window 4.0 seconds (64,000 samples)
Precision FP32 / FP16
Model Size ~378 MB (safetensors)
Target Language Russian (ru)

Dataset & Acoustic Degradation Pipeline

The training corpus consists of 16,706 balanced audio segments (8,353 authentic human utterances and 8,353 synthetic utterances) split 90/10 into training (15,035) and validation (1,671) sets.

  • Authentic Speech (label: 0): Sourced from open Russian speech corpora (RuLibriSpeech, SberDevices Golos), capturing diverse speaker demographics, recording devices, and natural prosody.
  • Synthetic Speech (label: 1): Generated using multi-speaker neural architectures (Silero TTS v4, Microsoft Neural TTS) with randomized pitch and speaking rate perturbations.
  • Channel Simulation: To mirror real-world VoIP and cellular fraud vectors, both classes were passed through a stochastic degradation pipeline prior to training:
    • Messenger Compression (35%): Transcoded via libopus at 8 kbps, 12 kbps, and 16 kbps (simulating Telegram and WhatsApp voice calls).
    • Narrowband Telephony (30%): Bandpass filtered between 300 Hz and 3,400 Hz with additive line noise.
    • Microphone Noise (20%): Additive Gaussian noise and random gain shifts (-6 dB to +6 dB).
    • Uncompressed Reference (15%): Clean 16 kHz waveform baseline.

Training & Evaluation Metrics

Training was conducted for 3 epochs (2,820 optimization steps) using AdamW (lr=3e-5, batch size 16, FP16 mixed precision).

Epoch Step Training Loss Validation Loss Validation Accuracy Validation F1
1 940 0.011800 0.000328 100.00% 1.0000
2 1880 0.002200 0.000119 100.00% 1.0000
3 2820 0.000100 0.000074 100.00% 1.0000

Training and Validation Convergence

Generalization & Zero-Shot Evaluation

To evaluate out-of-distribution generalization, Kora v1 was tested on unseen samples generated by KittenTTS-2 (an ultra-compact synthesis architecture excluded from the training set). Kora v1 achieved 75.0% zero-shot detection accuracy without prior exposure to the synthesizer's acoustic artifacts.

Detection Accuracy Benchmark


Inference Usage

Audio inputs must be resampled to 16 kHz mono prior to feature extraction. For recordings exceeding 4 seconds, sliding or non-overlapping 4-second windows with probability averaging are recommended.

import torch
import torchaudio
from transformers import AutoFeatureExtractor, AutoModelForAudioClassification

MODEL_ID = "thetemirbolatov/kora-v1"
SAMPLE_RATE = 16000

feature_extractor = AutoFeatureExtractor.from_pretrained(MODEL_ID)
model = AutoModelForAudioClassification.from_pretrained(MODEL_ID)
model.eval()

waveform, sr = torchaudio.load("input.wav")
if sr != SAMPLE_RATE:
    waveform = torchaudio.transforms.Resample(sr, SAMPLE_RATE)(waveform)
audio = waveform.mean(dim=0).numpy()

inputs = feature_extractor(
    audio,
    sampling_rate=SAMPLE_RATE,
    max_length=SAMPLE_RATE * 4,
    truncation=True,
    padding=True,
    return_tensors="pt"
)

with torch.no_grad():
    logits = model(**inputs).logits
    probs = torch.softmax(logits, dim=-1)

real_prob = probs[0][0].item()  
fake_prob = probs[0][1].item()  

print(f"REAL_HUMAN: {real_prob:.4f} | DEEPFAKE_AI: {fake_prob:.4f}")

Limitations & Roadmap

  • Out-of-Distribution Synthesizers: While Kora v1 demonstrates strong zero-shot transfer on unseen lightweight TTS engines, detection accuracy may degrade on real-time voice conversion (RVC) or zero-shot diffusion/flow-matching voice cloners (e.g., F5-TTS, XTTS-v2) not represented in v1.
  • Kora v2: Planned iterations will incorporate RVC, flow-matching voice cloning, and real-world social media audio samples to improve cross-generator robustness.

Citation

@misc{temirbolatov2026korav1,
  author = {Temirbolatov, Muhammad},
  title = {Kora v1: Russian Speech Anti-Spoofing Model},
  year = {2026},
  publisher = {Hugging Face},
  howpublished \(= {\url{https://huggingface.co/kora-v1}} \)}
Downloads last month
49
Safetensors
Model size
94.6M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for thetemirbolatov/kora-v1

Finetuned
(26)
this model

Evaluation results