This is Pytorch code that was used to train the models in the paper Jörgen Valk, Tanel Alumäe. VoxLingua107: a Dataset for Spoken Language Recognition. Proc. SLT 2021.