textless-lib: a Library for Textless Spoken Language Processing
Eugene Kharitonov, Jade Copet, Kushal Lakhotia, Tu Anh Nguyen, Paden Tomasello, Ann Lee, Ali Elkahky, Wei-Ning Hsu, Abdelrahman Mohamed, Emmanuel Dupoux, Yossi Adi
TL;DR
Textless-lib addresses the challenge of textless spoken language processing by providing a modular PyTorch library that unifies speech-to-unit encoding, unit-to-unit modeling, and speech synthesis. It offers ready-made encoders, quantizers, vocoders, datasets, and preprocessing to streamline experiments in speaker probing, speech resynthesis, and speech continuation. The paper demonstrates the library through three use-cases and discusses design choices that keep the API lightweight while enabling cross-disciplinary collaboration between speech and NLP. This work lowers barriers for researching textless representations and facilitates exploration of under-resourced languages and non-lexical speech signals with practical tooling and reusable building blocks.
Abstract
Textless spoken language processing research aims to extend the applicability of standard NLP toolset onto spoken language and languages with few or no textual resources. In this paper, we introduce textless-lib, a PyTorch-based library aimed to facilitate research in this research area. We describe the building blocks that the library provides and demonstrate its usability by discuss three different use-case examples: (i) speaker probing, (ii) speech resynthesis and compression, and (iii) speech continuation. We believe that textless-lib substantially simplifies research the textless setting and will be handful not only for speech researchers but also for the NLP community at large. The code, documentation, and pre-trained models are available at https://github.com/facebookresearch/textlesslib/ .
