HomeAI & Machine LearningVoice Cloning: Speaker Embedding Angle Map

Voice Cloning: Speaker Embedding Angle Map

Interactive 2D speaker-embedding angle map: watch a GE2E-style encoder pull same-speaker utterances onto a tight angular arc on the unit circle, then few-shot 'clone' a target voice and read its cosine similarity — cos(Δθ) — against every speaker's centroid angle.

AI & Machine Learning2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-ai-topic-68 ↗ Open standalone

Modern voice-cloning tools like ElevenLabs and Bark don't retrain a model for every new voice — they run a few seconds of reference audio through a frozen speaker encoder trained with a GE2E (Generalized End-to-End) loss, average the resulting embeddings, and hand that single vector to a synthesizer as a conditioning signal. Because cosine similarity between embeddings depends only on the angle between them, this simulator renders the entire embedding space as points on a circle: each point is one reference utterance at its embedding's angle, colour-coded by speaker. A training-progress slider replays how GE2E loss pulls each speaker's utterances onto a tight arc while pushing different speakers' centroid angles apart. Pick a target speaker and a number of few-shot reference clips, hit Clone, and watch a new golden angle get computed as their circular average — with live cosine-similarity bars showing exactly how a real speaker-verification system would judge whether the clone convincingly matches its target versus every other voice in the room.

⚙ Under the hood

Explore a 2D speaker-embedding angle map where a GE2E-style encoder pulls each speaker's reference utterances onto a tight arc of the unit circle, then few-shot 'clone' a target voice by circular-averaging its reference angles and read live cosine-similarity bars — cos(Δθ) — against every speaker's centroid, the same accept/reject signal a real speaker-verification gate checks.

voice cloningspeaker embeddingGE2E losscosine similaritycircular meantext-to-speechspeaker verification

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)