To prepare call center audio recordings for speech analytics, process the audio and transcript separately. Remove audible identifiers from the audio copy, and replace them in the text with labels by type. After editing, verify that the artifacts preserve the facts of the conversation and that hidden values are also absent from alternate tracks, exports, and attachments.
- What data remains in the audio and in the text
- Step 1. Map the path from recording to analytics
- Step 2. Replace identifiers in the transcript
- Step 3. Mask the corresponding segment in the audio copy
- Step 4. Check for masking gaps and meaning
- What to consider under Federal Law No. 152
What data remains in the audio and in the text
If an analyst reads only the transcript, they usually need the conversation context and the outcome: the customer reschedules delivery, the agent promises to check, and inquiries repeat. To assess speech rate or long pauses, audio may be necessary. Decide in advance where it is truly needed. Then you can limit release to analytical text for some users and separately provide the processed audio track to an authorized group.
| Field | How it sounds in a fictional example | What the result looks like |
|---|---|---|
| Name | "Hello, I’m Irina Primerova" | "Hello, I’m [NAME]" |
| Phone number | "The number ends in two, zero, nine, one" | "The number ends in [PHONE]" |
| Contract number | "Contract TEST-seven-four" | "Contract [CONTRACT]" |
| Delivery reschedule | "Deliver it Thursday after six" | Event "delivery reschedule," retention period per the approved policy |
| Voice and circumstances | Uncommon location name, announcement noise in the background | Separate review for possible customer identification |
For a technical test, use synthetic voices and clearly fictional values. In certain circumstances, the voice, a combination of place and time, or uncommon content can identify a person even after the name is removed. Assess the result based on the dataset, the audience, and the other information available to them.
Step 1. Map the path from recording to analytics
Processing flow: secure recording storage → local speech recognition → tagging of sensitive segments → two processed copies → review → analytics report. At intake, preserve the recording ID and the list of tracks. Raw audio and the original transcript remain in the working area with their own access rights. Send only the approved result to the analytics queue.
If the original call stores the customer and the agent on separate channels, treat them separately. The agent may repeat the customer’s number for confirmation. Masking the first occurrence on the customer channel will not hide the second occurrence. The adjacent service track and embedded subtitles should also be checked separately.
Account for copies created by tools. An intermediate transcript, error logs, the timestamp file, and the backup copy may contain the same information. For each one, define the purpose, location, retention period, and access roles. In an air-gapped processing mode, also verify where the models are downloaded from and whether the environment sends telemetry. The term "air-gapped" by itself does not automatically describe these settings.
Step 2. Replace identifiers in the transcript
Build the tagging in several passes. Structured templates are useful for standard contract numbers, while dictionaries and named entity recognition models are useful for names. Keep in mind that speech turns digits into words and may split a code with a pause or an agent’s interjection. Russian surnames change form, and words like "Roman" and "Lev" can be both names and common words. Separate negative examples help distinguish these cases.
Store the position in the text and the time of the audio interval separately. Replacing four words with a short label changes both text pointers, so the original alignment needs to be captured before the string is changed. If confidence is low, send the segment for review. One example of a library-based approach is a separate entity-detection stage and applying replacement operators to the identified ranges. This is a processing scheme; the quality of the Russian-language model and dictionary should be tested on your own scenarios. Presidio examples
Step 3. Mask the corresponding segment in the audio copy
Match the value found in the text with the timestamps on the source audio. If the timecodes apply only to a long utterance, manually isolate the word or mask the entire sensitive segment according to the release rules. For example, the fictional name occupies the 2.40–3.10 s interval. Add a small buffer on both sides after listening to the boundaries if recognition shifted the start or end. Choose the exact buffer based on control segments.
Silence or insertion of a neutral signal of the same length preserves the conversation timeline. The output file should contain only processed tracks. Overlaying loud sound over the preserved original does not work if the original is available in the container as a separate track. Listen to the release and open the stream details. Audio processing and time expressions in FFmpeg
The material provides a project-level processing algorithm; the 2.40–3.10 s example is used to calculate coverage. Recognition error rates, masking quality on real calls, and the suitability of a specific application depend on on-site testing.
Step 4. Check for masking gaps and meaning
| Class | What to include in the review | What counts as a defect |
|---|---|---|
| Names | Name, inflected surname, repetition by the agent, homonym | The name can be heard on any channel or appears in the text. A common word was incorrectly removed |
| Phone numbers | Digits in sequence, spoken in groups, last four digits | A fragment remains that reveals the reference in context |
| Contracts | Letters mixed with numbers, pause between parts | A prefix or suffix remains that makes it possible to reconstruct the key |
| Meaning | Reason for the call, the agent’s promise, the outcome of the conversation | The reviewer incorrectly classifies the reason or action after processing |
| File | All channels, metadata, attachments, and the final report | The source text, unprocessed track, or sensitive attribute was detected |
Suppose that in a training example, experts tagged 50 identifier occurrences, of which two are visible in the release. In this sample, the miss rate is 2 / 50 = 4%. One entity can appear three times, so specify the counting unit in advance: a separate occurrence, a unique value, or the entire call. For audio and text, track different values and record cases where the release is rejected in full. Assess the risk of re-identification from a combination of fields separately from the mask counter.
What to consider under Federal Law No. 152
The law defines anonymization as making it impossible to determine whether the data belongs to a specific subject without additional information. Replacing a string with a stable code plus a mapping table leaves additional information and requires access control for that information. Removing several fields by itself does not establish the legal status of the entire dataset. Different requirements may apply to ordinary processing and special modes. Roskomnadzor Order No. 140 expressly notes an exception for cases under paragraph 9.1 of part 1 of Article 6 of the law. Federal Law No. 152 text · Roskomnadzor Order No. 140, published text in PDF
Coordinate with the person responsible for personal data on the legal basis for processing, the purposes, retention periods, release of derivative data, and rules for recognizable voice data. The article’s guidance concerns workflow design and processing quality. Any legal conclusion about specific recordings and legal bases requires an assessment of the organization. For related topics, see the architecture of call speech analytics and data processing when using external AI tools.
How to Break Down a Single Workflow with the Studio
Vladimir Lomtev’s AI Studio helps map the audio and text flow, prepare processing in a controlled environment, and build tests for gaps and loss of meaning. For the first discussion, bring sample calls, a list of sensitive data categories, and a sample analytics report.
Conclusion
Agree on who needs the audio, who only needs the text, and which parts of the conversation can be retained. Produce two processed copies, check matches across channels, and listen for the limits of editing. An assessment of the dataset’s legal status and a check for repeat identification complete the decision on data release.
Official sources verified on 2026-11-23.


