From Speech Tokens to Stolen Voices: Attacker-Chosen-Text Speaker Impersonation via Representation Inversion
Organizations: School of Cyberspace Science, Harbin Institute of Technology
Abstract
Speech interaction systems have gradually evolved from traditional cascaded systems that use text as intermediate information to end-to-end speech language models that directly process speech representations. In some applications, the speech frontend runs on the user's device and sends speech representations to a remote server for inference, while the original audio remains local. However, these representations may still contain speaker identity information. If an attacker obtains them, it may use this information to imitate the user's voice, threatening their voice privacy. To investigate this risk, we propose \stia, a Speech Token Inversion Attack that generates speech with attacker-specified text in a victim's voice using a single short leaked representation, without access to the original audio or its transcript. Specifically, \stia converts discrete, continuous, or mixed speech representations into conditioning sequences and trains a conditional flow-matching speech generation model using pairs of different utterances from the same speaker in public speech datasets. The model combines speaker characteristics contained in the leaked representation with the specified text to generate speech in the victim's voice. Experiments show that, with a Moshi representation leak corresponding to 3 seconds of speech, \stia achieves an average CAM++ speaker cosine similarity of 0.78 and a target-text word error rate of 3.80%. These results show that speech frontend representations reveal reusable speaker identity information and highlight the need to consider privacy risks when designing speech frontend representation methods.
Figures & tables
| Target model | Frontend model | Frontend processing pipeline | Frontend output format | Output dimension |
|---|---|---|---|---|
| Moshi | Mimi neural audio codec | 24-kHz mono waveform causal SEANet encoder (strides ) 8-layer, 8-head Transformer 8-stage split RVQ | Frame-synchronous discrete RVQ code-index streams at 12.50 Hz | 8 scalar IDs/frame; 2,048 entries per stage |
| Kimi-Audio | GLM-4-Voice semantic tokenizer and adapted Whisper encoder | 16-kHz mono waveform 128-bin log-Mel features parallel semantic and acoustic branches: 32-layer tokenizer with single-codebook VQ; four 1,280-D Whisper frames with a 2-layer adaptor | Aligned semantic ID and continuous acoustic feature at 12.50 Hz | 1 scalar ID 3,584-D vector/frame |
| Qwen3-Omni | Audio Transformer (AuT) encoder | 16-kHz mono waveform 128-bin log-Mel features (25-ms window, 10-ms hop) three stride-2 Conv2D blocks 32-layer, 650M-parameter AuT (width 1,280) | Frame-synchronous continuous AuT hidden sequence at 12.50 Hz | 2,048-D vector/frame |
| Target model | Attack | CAM | ECAPA | WER (%) | UTMOS |
|---|---|---|---|---|---|
| Moshi | SpInv+TTS | ||||
| STIA (ours) | |||||
| Kimi-Audio | SpInv+TTS | ||||
| STIA (ours) | |||||
| Qwen3-Omni | SpInv+TTS | ||||
| STIA (ours) |
| Language | CAM | ECAPA | WER/CER(%) | UTMOS |
|---|---|---|---|---|
| English | 0.78 | 0.79 | 3.80 | 2.92 |
| Chinese |
| Clips(M) | Dura.(h) | CAM | ECAPA | WER (%) | UTMOS |
|---|---|---|---|---|---|
| 0.80 | 2.9k | 0.70 | 0.76 | 8.98 | 2.93 |
| 1.60 | 5.9k | ||||
| 2.40 | 8.9k |
| Leakage | CAM | ECAPA | WER (%) | UTMOS |
|---|---|---|---|---|
| 2.00 s | 0.76 | 0.79 | 6.24 | 2.91 |
| 3.00 s | ||||
| 5.00 s | ||||
| 8.00 s |
| Size | Params | CAM | ECAPA | WER (%) | UTMOS |
|---|---|---|---|---|---|
| XL | 0.60B | 0.78 | 0.79 | 3.80 | 2.92 |
| L | 0.50B | ||||
| M | 0.35B |
| Input | CAM | ECAPA | WER (%) | UTMOS |
|---|---|---|---|---|
| Original | 0.78 | 0.79 | 3.80 | 2.92 |
| Anonymized |
| Control | CAM | ECAPA | WER (%) | UTMOS |
|---|---|---|---|---|
| Standard | 0.78 | 0.79 | 3.80 | 2.92 |
| - No-leak | ||||
| - No-text | — | |||
| - Neither | — | |||
| - Wrong text |
| Setting | Value |
|---|---|
| Optimizer / precision | AdamW / BF16 |
| Effective batch size | 64 |
| Training steps | 150,000 |
| Peak / final learning rate | / |
| Warmup / schedule | 1,000 steps / cosine decay |
| Main leak / model | 3.00 s / XL (0.60B) |
Voice Cloning
Voice cloning uses speech samples to reproduce a speaker’s vocal identity in generated speech across different content, languages, and styles.
See all 42 papers