Ismail Ben Alla

PairVC

Real-Time Voice Conversion from Paired Speech

Audio · Oct 2026 · In progress

Your voice into a target voice, live: a tiny causal network trained on a big teacher’s paired speech.

Built withPyTorchONNXStreamlitJavaScriptKaggle

PairVC — overview

Overview

PairVC turns your voice into one of several target voices while you speak. It is a fully causal waveform-to-waveform network that converts audio 20 ms at a time on one CPU core.

It is trained on paired data: every source clip comes with the same speech already converted to each target voice by a big, slow, offline teacher. PairVC learns to reproduce the teacher’s output, so it gets the teacher’s voices at a fraction of the cost.

It continues the real-time voice conversion work I started in my MSc thesis (NatVC).

The question

Can a tiny streaming network learn a big, slow voice converter’s voices well enough to run live on a CPU?

Key features

How it works

  1. Paired data from a teacher

    A big offline voice converter turns each source clip into every target voice; the pairs become the training set.

  2. A tiny causal network

    A causal convolutional encoder squeezes the audio 320× into 64-dim frames (one per 20 ms), and a mirrored decoder rebuilds the waveform in the target voice, conditioned through FiLM.

  3. Live conversion

    Exported to ONNX, the model streams 20 ms chunks from the microphone, in Python or directly in the browser.

Examples

The validation clip at every evaluation: source, PairVC at that step, the teacher, and the validation loss.
Log-mel spectrograms on a speaker never seen in training: before training, after training, and the teacher, for both target voices.
Log-mel spectrograms on a speaker never seen in training: before training, after training, and the teacher, for both target voices.
The Streamlit app converting a live microphone, 20 ms at a time, with its latency measured.
The Streamlit app converting a live microphone, 20 ms at a time, with its latency measured.

Tech stack

What I learned

Limitations

Related projects