UniSpeech-SAT: Universal Speech Representation Learning with Speaker Aware Pre-Training
Paper โข 2110.05752 โข Published
An fp16 copy of microsoft/unispeech-sat-base-plus-sv, Microsoft's UniSpeech-SAT speaker-verification encoder (X-Vector head, fine-tuned on VoxCeleb1). No changes beyond the dtype cast; reduced size and precision.
Exactly:
import torch
from transformers import UniSpeechSatForXVector
encoder = UniSpeechSatForXVector.from_pretrained(
"microsoft/unispeech-sat-base-plus-sv", dtype=torch.float32
)
encoder.half().save_pretrained(".")
(convert.py in this repo.)
from transformers import UniSpeechSatForXVector
encoder = UniSpeechSatForXVector.from_pretrained("Remsky/unispeech-sat-base-plus-sv-fp16")
Input is 16 kHz mono audio, as with the original. Load with dtype=torch.float32 if you want fp32 compute from the fp16 weights.
All credit for the model goes to Microsoft; this repo is only a dtype conversion.
@article{chen2021unispeechsat,
title={UniSpeech-SAT: Universal Speech Representation Learning with Speaker Aware Pre-Training},
author={Chen, Sanyuan and Wu, Yu and Wang, Chengyi and Chen, Zhengyang and Chen, Zhuo and Liu, Shujie and Wu, Jian and Qian, Yao and Wei, Furu and Li, Jinyu and Yu, Xiangzhan},
journal={arXiv preprint arXiv:2110.05752},
year={2021}
}
Base model
microsoft/unispeech-sat-base-plus-sv