Probing Neural Audio Codecs with Speaker Traits and Speech Characteristics
Organizations: Signal Analysis and Interpretation Lab (SAIL), University of Southern California · Center for Language and Speech Processing, Johns Hopkins University
Abstract
Neural audio codecs are increasingly used for low-bitrate speech coding and serve as tokenizers for speech language models, yet it remains unclear how their codebook hierarchies encode speaker traits and speech characteristics. We systematically study 17 multi-codebook neural audio codecs across seven traits: sex, age, accent, voice quality, emotion, speech flow, and non-verbal sounds. For each codec, we reconstruct speech using partial codebooks and use machine listeners to compare trait predictions on each reconstruction. We measure prediction agreement with reweighted Cohen's \k{appa}, and define trait depth as a proxy for the codebook depth by which each trait is encoded and recoverable. Overall, sex has the shallowest trait depth, followed by speech flow, whereas voice quality and age group require deeper stacks; emotion, accent, and non-verbal sounds fall in between. Within each trait, speech-flow classes are at relatively similar trait depths, whereas emotion, accent, and non-verbal sounds differ more. Additionally, we explore how certain codec design choices relate to trait depths. These findings show that codebook hierarchies are trait-dependent and may not exhibit uniform coarse-to-fine structures, motivating trait-specific codec evaluation and design for future applications.
Figures & tables
| Codec | Framerate | Sampling Rate | Number of | Bitrate | Distillation | Streaming |
| (Hz) | (kHz) | Codebooks | (kbps) | |||
| EnCodec ( Défossez et al., 2023 ) | 75 | 24 | 32 | 24 | ✗ | ✓ |
| DAC ( Kumar et al., 2023 ) | 50 | 16 | 8 † | 4 | ✗ | ✗ |
| FunCodec 50 Hz ( Du et al., 2024 ) | 50 | 16 | 32 | 16 | ✗ | ✗ |
| FunCodec 25 Hz | 25 | 16 | 32 | 8 | ✗ | ✗ |
| SpeechTokenizer ( Zhang et al., 2024 ) | 50 | 16 | 8 | 4 | ✓ | ✗ |
| Trait | Labels | Machine Listeners | Dataset |
|---|---|---|---|
| Sex Age | female, male under 30, 30–60, over 60 | VoxProfile; audeering | TIMIT, VoxCeleb, Common Voice |
| Accent | North America, (England) English, Scottish, Irish, Northern Irish, Welsh, Oceania, South African, Germanic, Romance, Slavic, Semitic, East Asia, Southeast Asia, South Asia, other | Voxlect; GenAID; CommonAccent ECAPA | Voxlect English test set (Section 3.2 ) |
| Voice quality | Pitch : shrill, nasal, deep Rhythm : singsong, pitchy, flowing, monotone, staccato, punctuated, enunciated, hesitant Clarity : crisp, slurred, lisp, stammering Texture : silky, husky, raspy, guttural, vocal fry Volume : booming, authoritative, loud, hushed, soft | VoxProfile | ParaSpeechCaps |
| Emotion | anger, contempt, disgust, fear, happiness, neutral, sadness, surprise, other | VoxProfile; emotion2vec+ | IEMOCAP |
| Speech flow | fluent, block, prolongation, sound repetition, word repetition, interjection | VoxProfile | FluencyBank, SEP-28k |
| Non-verbal | laughter, sigh, cough, throat clearing, sneeze, sniff | SSLAM; AST; SenseVoice | VocalSound |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Codec | Decoded prefixes | |
|---|---|---|
| EnCodec | 32 | 1–8, 12, 16, 24, 32 |
| DAC | 8 † | 1–8 |
| FunCodec 50 Hz | 32 | 1–8, 12, 16, 24, 32 |
| FunCodec 25 Hz | 32 | 1–8, 12, 16, 24, 32 |
| SpeechTokenizer | 8 | 1–8 |
| Mimi | 32 | 1–8, 12, 16, 24, 32 |
| of | |||
|---|---|---|---|
| Trait | Auxiliary Listener | All | |
| Sex | audeering | 0.98 | 0.94 |
| Age group | audeering | 0.95 | 0.96 |
| Accent | GenAID | 0.79 | 0.97 |
| CommonAccent ECAPA | 0.82 | 0.98 | |
| Emotion | emotion2vec+ | 0.82 | 0.87 |
| Trait | Clips | Speakers | Hours |
|---|---|---|---|
| Accent | 39,911 | 173 | 82.18 |
| Sex, age group | 12,619 | 1,295 | 23.45 |
| Voice quality | 13,076 | 63 | 27.16 |
| Non-verbal sound | 3,591 | 574 | 4.14 |
| Emotion | 600 | 10 | 1.00 |
| Speech flow | 1,622 | 162 | 1.35 |
| Codec | Checkpoint | Code | License |
|---|---|---|---|
| EnCodec | huggingface.co/facebook/encodec_24khz | github.com/huggingface/transformers | Apache-2.0 |
| DAC | huggingface.co/descript/dac_16khz | github.com/huggingface/transformers | MIT, Apache-2.0 |
| FunCodec (50, 25 Hz) | 50 Hz: huggingface.co/alibaba-damo/audio_codec-encodec-en-libritts-16k-nq32ds320-pytorch ; 25 Hz: huggingface.co/alibaba-damo/audio_codec-encodec-en-libritts-16k-nq32ds640-pytorch | github.com/modelscope/FunCodec | MIT |
| SpeechTokenizer | huggingface.co/fnlp/SpeechTokenizer ( speechtokenizer_hubert_avg ) | github.com/ZhangXInFD/SpeechTokenizer | Apache-2.0 |
| Mimi | huggingface.co/kyutai/mimi | github.com/huggingface/transformers | CC BY 4.0, Apache-2.0 |
| HILCodec | github.com/aask1357/hilcodec/tree/master/onnx ( hil_speech ) | github.com/aask1357/hilcodec | MIT |
| Listener | Checkpoint | Code | License |
|---|---|---|---|
| VoxProfile | huggingface.co/tiantiaf | github.com/tiantiaf0627/vox-profile-release | OpenRAIL, RAIL-S 1.1 |
| Voxlect | huggingface.co/tiantiaf/voxlect-english-dialect-whisper-large-v3 | github.com/tiantiaf0627/voxlect | OpenRAIL, RAIL-S 1.1 |
| SSLAM | huggingface.co/ta012/SSLAM_AS2M_Finetuned (rev. 4500c5d ) | github.com/ta012/SSLAM | MIT |
| audeering | huggingface.co/audeering/wav2vec2-large-robust-24-ft-age-gender | github.com/huggingface/transformers | CC BY-NC-SA 4.0, Apache-2.0 |
| GenAID | drive.google.com/file/d/1slGrpZSu5g-nF7R-QMCmtGcjN3kw7lQj/view ( GenAID_v6 ) | github.com/jzmzhong/GenAID | Apache-2.0 |
| CommonAccent ECAPA | huggingface.co/Jzuluaga/accent-id-commonaccent_ecapa | github.com/speechbrain/speechbrain | MIT, Apache-2.0 |
Neural Audio Codecs
Neural audio codecs learn compact representations for compressing and reconstructing speech, music, and other sounds.
See all 87 papers