FragmentVC
A voice conversion model that uses cross-attention to pull voice fragments from a target speaker's recordings.
Audio and speech · 382 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Audio and speech
- Parameters
- 48M
- Operations
- 382
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICASSP 2021
- Cited by
- 65 (as of 24 October 2026)
- Authors
- Yist Y. Lin, Chung-Ming Chien, Jheng-Hao Lin and others
- Source
- GitHub: yistLin/FragmentVC
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m16747
- Graph hash
- 22287a2dba592fb5d7c8094f26fd78937db4e371e8a5f99e4e8efc2f74b1e4f5
- Skeleton hash
- e23a72157e8f339637ac3e9dd0673d56b88bda8d8108bffbca15bdb81986d88b
- Architecture hash
- 015841bf43b493a818dfece6b499bf0c158d6a800986d085c561bac6d4b6deb0
- Diagram SHA-256
- e745f0648ebaec7ff53324234a1cb01f12985a88daf868f3bb7a4b987106ba16
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
FragmentVC is a model for any-to-any voice conversion, which aims to convert the voice from and to any speakers, even ones unseen during training. Rather than separating content from speaker identity, it attends directly to utterances from the target speaker and fuses pieces of them into the output.
On the source side, 768-dimensional features from a pretrained Wav2Vec 2.0 are converted to 512 dimensions by two linear layers. On the target side, log mel-spectrograms pass through three ReLU-activated 1d-convolution layers. The decoder is a stack of extractors and smoothers, a linear projection and a PostNet, and it predicts the output log mel-spectrogram non-autoregressively. Extractors have self-attention and cross-attention onto the target encoder's output, while smoothers have self-attention only. The cross-attention is arranged like a U-Net. Extractor 1 attends to the output of the third convolution layer of the target encoder. Extractor 3, which makes only minor adjustments to the spectrogram, attends to the first. Extractor 1 also drops the residual connection over its cross-attention, because the Wav2Vec features carry some speaker information.
Training uses only an L1 loss between the predicted and ground-truth log mel-spectrograms. The authors found that phonetically similar fragments of the source and target utterances were implicitly aligned in the attention maps. In the paper, a separate WaveRNN-based vocoder converts the log mel-spectrograms to waveforms.
Key idea. FragmentVC converts voices by using Transformer attention to extract fine-grained voice fragments from target speaker utterances and fuse them into the output utterance.
- FragmentVC
- voice conversion
- any-to-any voice conversion
- voice fragments
- speech conversion
- speaker conversion
- mel-spectrogram prediction
- attention-based voice conversion
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{lin2021fragmentvcanytoanyvoiceconversion,
title={FragmentVC: Any-to-Any Voice Conversion by End-to-End Extracting and Fusing Fine-Grained Voice Fragments With Attention},
author={Yist Y. Lin and Chung-Ming Chien and Jheng-Hao Lin and Hung-yi Lee and Lin-shan Lee},
year={2021},
eprint={2010.14150},
archivePrefix={arXiv},
primaryClass={eess.AS},
url={https://arxiv.org/abs/2010.14150},
}