arXiv:2610.34688cs.SDOct 2026

Manuscript Offprint

arXiv:2610.34688

From Speech Tokens to Stolen Voices: Attacker-Chosen-Text Speaker Impersonation via Representation Inversion

Ye Lu, Shen Wang, Runze Liu, Zhitao Ou, Haonan Huang, Yihan Yan, Fanghui Sun, Zhaoyang Zhang

Ye Lu, Shen Wang, Runze Liu, Zhitao Ou, Haonan Huang, Yihan Yan, Fanghui Sun, and Zhaoyang Zhang

School of Cyberspace Science, Harbin Institute of Technology

Corresponding author: Zhaoyang Zhang (zhaoyang_zhang@hit.edu.cn)

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.

Index Terms—speech privacy, model inversion attacks, speaker impersonation, privacy and security of speech language models

1. Introduction

End-to-end speech language models increasingly use speech-native representations during inference, rather than relying on a cascaded pipeline that uses text as the intermediate modality between automatic speech recognition (ASR), a large language model (LLM), and text-to-speech (TTS) synthesis. These models typically use a speech frontend to convert audio into acoustic tokens, continuous features, or both, preserving emotional cues, intonation, and other prosodic information that text alone cannot fully convey [1], [2], [3]. In a split deployment, user audio can be converted locally into these representations, which are then sent to a remote server for processing, while raw waveforms remain on the user's device. This deployment may create the misleading impression that transmitting frontend representations rather than raw waveforms is sufficient to protect speaker privacy.

However, prior work has shown that frontend encoding does not remove all speaker information. SpInv recovers speaker embeddings, which are vector representations used to compare speaker identities, from speech-language-model frontend representations [4]. Its results establish that identity information can remain exposed through frontend representations even when the original waveform is unavailable. Keeping raw audio local is therefore insufficient, by itself, to protect speaker privacy.

Speaker-embedding recovery leaves an unresolved security question: can an attacker reuse the identity information retained in frontend representations to generate new content in the victim's voice? Embedding recovery alone does not establish whether a leaked representation supports speech generation that both preserves the speaker's vocal characteristics and accurately conveys chosen text. Existing voice-cloning methods can synthesize speech for new text from short reference recordings, but typically rely on access to the speaker's audio [5], [6], [7]. We therefore investigate whether an attacker with only fragmented frontend representations of the victim's speech, and no original audio, can generate speech that preserves the victim's vocal characteristics and conveys attacker-chosen text unrelated to the source utterance.

To investigate speaker impersonation from frontend representations, we propose STIA, a Speech Token Inversion Attack. Figure 1 places the attack in the split deployment we consider: the victim's device converts speech into frontend representations for a remote server, while retaining the raw waveform locally. We assume that the attacker can read only the frontend representation of a segment of one victim utterance, rather than the full-utterance representation. Neither the victim's waveform nor the source transcript is available. STIA combines the leaked fragmented representation with independently chosen text to generate a new speech waveform. The objectives on the right describe the intended impersonation capability: the generated speech should preserve the victim's vocal identity, convey the chosen text, and sound

Figure

Figure 1. Split-deployment setting and STIA attack overview. The attacker combines leaked frontend representations with chosen text to generate speech; the boxes on the right state the attack objectives.

natural.

The central idea behind STIA is to learn to reuse vocal cues retained in fragmented frontend representations to generate speech with new textual content. During training, we use a public auxiliary speech dataset to learn a conditional flow-matching model in a frozen audio codec's continuous latent space. Each training example pairs a source representation fragment with target text and speech from a different utterance by the same speaker. Specifically, a leak conditioning encoder maps discrete, continuous, or mixed representation fragments obtained through black-box frontend queries into conditioning sequences. A trainable text projection maps the outputs of a frozen multilingual text encoder to text-condition sequences of the same width. Both conditions feed a Transformer shared between denoising and decoding modes. The network learns a transformation from noise to target speech latents through conditional flow matching, while codec-aware decoding supervision aligns predicted latents with the target speech's discrete codes [8], [9]. At attack time, the trained model conditions on the victim's leaked representation fragment and attacker-chosen text to iteratively generate speech latents from Gaussian noise. A final latent decoding step is followed by quantization and waveform synthesis through the frozen codec to produce the generated audio. No victim-specific training or adaptation is required.

For evaluation, we select the frontends of three representative speech language models (Moshi, Kimi-Audio, and Qwen3-Omni) covering discrete, mixed, and continuous representations, respectively. We use speakers unseen during attack training and assess vocal similarity against genuine recordings distinct from the leakage source. We construct SpInv+TTS as a two-stage baseline that recovers speaker embeddings before synthesizing the chosen text with SpeechT5 [10]. Across all three frontends, STIA achieves higher mean speaker similarity under both CAM++ and ECAPA and lower mean target-text word error rate (WER), while mean UTMOS scores for predicted naturalness remain similar to those of the baseline. For a Moshi representation leak corresponding to 3 seconds of speech, STIA obtains a mean CAM++ cosine similarity of 0.78 and a mean WER of 3.80%. These results show that, under the evaluated conditions, fragmented frontend representations can be used to generate speech that retains a victim's vocal characteristics and conveys new, attacker-chosen content, creating risks of voice impersonation and leakage of private speaker information.

Our contributions can be summarized as follows:

  • To the best of our knowledge, we are the first to study arbitrary-text speaker impersonation from leaked frontend representations of end-to-end speech language models. The only victim-specific input required is a short leaked representation fragment. The attacker can choose arbitrary target text independently of the source utterance, without access to the victim's waveform or source transcript.

  • We propose STIA, which generates speech directly from leaked frontend representation fragments and attacker-chosen text. It accommodates discrete, continuous, and mixed representations, learns reusable vocal cues through same-speaker, cross-utterance training on public auxiliary speech, and combines conditional flow matching with codec-aware decoding supervision for synthesis, without victim-specific training data or a separate speaker-embedding recovery stage.

  • We conduct extensive and detailed experimental evaluations on the frontends of three representative target models. The results show that STIA effectively exploits representation fragments to gen-

erate speech that preserves victims' vocal characteristics and conveys chosen text, outperforming the SpInv+TTS baseline method on both speaker-similarity metrics and mean target-text WER. We further examine the effects of leakage duration, auxiliary-data volume, model scale, and leakage and text conditioning, and test McAdams anonymization against a fixed attacker.

References (40)