RepCodec: A Speech Representation Codec for Speech Tokenization

Zhichao Huang, Chutong Meng, Tom Ko
8/31/2023
eess.AScs.LGcs.SD

No official code found. Best implementation: mct10/RepCodec (196 stars, last commit 2024-07-12).

Abstract

With recent rapid growth of large language models (LLMs), discrete speech tokenization has played an important role for injecting speech into LLMs. However, this discretization gives rise to a loss of information, consequently impairing overall performance. To improve the performance of these discrete speech tokens, we present RepCodec, a novel speech representation codec for semantic speech tokenization. In contrast to audio codecs which reconstruct the raw audio, RepCodec learns a vector quantization codebook through reconstructing speech representations from speech encoders like HuBERT or data2vec. Together, the speech encoder, the codec encoder and the vector quantization codebook form a pipeline for converting speech waveforms into semantic tokens. The extensive experiments illustrate that RepCodec, by virtue of its enhanced information retention capacity, significantly outperforms the widely used k-means clustering approach in both speech understanding and generation. Furthermore, this superiority extends across various speech encoders and languages, affirming the robustness of RepCodec. We believe our method can facilitate large language modeling research on speech processing.

View on arXivView PDF

Code Implementations(1)

mct10/RepCodecCommunity100%

Models and code for RepCodec: A Speech Representation Codec for Speech Tokenization

19612PythonAug 25, 20232 years agoNOASSERTION

Similar Papers

Cite this paper

@article{huang2023repcodec,
  title  = {RepCodec: A Speech Representation Codec for Speech Tokenization},
  author = {Zhichao Huang and Chutong Meng and Tom Ko},
  year   = {2023},
  eprint = {2309.00169},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.00169v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.00169.svg)](https://codeofpaper.com/paper/2309.00169)

Discussion