Abstract
Sharing speech data for clinical, legal, or research purposes presents significant privacy challenges. Traditional methods like "bleeping" or full voice conversion often destroy prosodic rhythm or leave sensitive content intact. This paper introduces a pipeline for "obfuscating" speech by automatically identifying named entities (NEs) and replacing them with contextually appropriate substitutes synthesized in the original speaker's voice. By performing Named Entity Recognition (NER) directly on the audio signal and utilizing voice cloning, the proposed system protects privacy while preserving the natural flow and prosody of the original conversation.
Introduction
The primary challenge in speech anonymization is balancing privacy with data utility. While text-based obfuscation is a mature field, applying it to speech typically requires a two-step process: Automatic Speech Recognition (ASR) followed by NER on the resulting text. This approach is prone to error propagation; transcription inaccuracies often lead to NER failures. This research proposes a method to perform NER directly on the audio and re-insert cloned speech to create a seamless, obfuscated audio file, thereby bridging the gap between acoustic signals and sensitive content protection.
Methodology
The authors propose a multi-stage pipeline designed to identify, substitute, and re-synthesize sensitive entities within an audio stream.
- Direct Audio NER: Instead of transcribing first, the system fine-tunes HuBERT, a self-supervised speech model, to identify named entities (Person, Location, Organization) directly from the acoustic signal. This parallel processing avoids the compounding errors inherent in ASR-first approaches.
- Contextual Substitution: Once an entity is identified, Masked Language Models (MLMs) such as BERT, ALBERT, and RoBERTa predict a contextually appropriate replacement. These suggestions are cross-referenced with a name database to ensure the replacement matches the original entity type.
- Voice Cloning & Insertion: To maintain naturalness, YourTTS (a multi-speaker text-to-speech model) clones the original speaker's voice using a brief reference sample and generates the replacement name.
- Verification: A final ASR pass on the modified audio calculates a confidence score based on Word Error Rate (WER), identifying instances that may require manual intervention.
Datasets
The system was developed and evaluated using several key datasets:
- English Speech NER Dataset: Used for fine-tuning HuBERT for entity recognition, containing ~70,000 annotated waveforms.
- LibriSpeech: Utilized for prototype evaluation.
- VCTK Dataset: Employed for pre-training the YourTTS voice cloning model.
- External Name List: A GitHub-sourced database used to validate MLM-generated substitutions.
Results and Insights
The most significant insight of this work is that speech models like HuBERT possess sufficient internal linguistic knowledge to identify entities without explicit transcripts. This decoupling of NER from ASR allows the system to use one process to mitigate errors in the other.
Key performance metrics include:
- NER Accuracy: The fine-tuned HuBERT model achieved a Character Error Rate (CER) of 0.063 on the NER task, indicating high precision in entity localization.
- Prototype Success: In a small-scale evaluation of 20 sentences, the system correctly identified and replaced the named entity in 65% of cases (13 out of 20).
- Model Comparison: Evaluation of different MLMs for substitution showed that ALBERT and RoBERTa slightly outperformed BERT in terms of the final obfuscated audio's confidence scores.
Discussion and Future Work
While the pipeline demonstrates the feasibility of seamless speech obfuscation, several limitations remain. The current system lacks cross-utterance identity tracking; a single individual mentioned multiple times might be replaced by different names, potentially confusing listeners. Furthermore, the substitution strategy does not yet guarantee the preservation of demographic properties like gender or ethnicity, which could introduce bias. Future work will focus on extending the system to handle more complex entity types and improving robustness across diverse accents and acoustic environments.
Summary updated