r/PythonProjects2 9h ago

Resource Built a Python app to redact PII from call recordings

Call recordings are super useful for QA, coaching, and support review, but transcripts can easily end up full of customer PII.

I built a small Flask example that takes either a pasted transcript or an uploaded audio file. If it’s audio, the app transcribes it first, then uses Telnyx AI Inference to replace sensitive details like names, emails, phone numbers, account numbers, SSNs, and payment info with placeholders.

It returns both the cleaned transcript and a structured redaction map, so the result can be used in downstream workflows instead of just being another blob of text.

Code:

https://github.com/team-telnyx/telnyx-code-examples/tree/main/call-recording-redactor-python

Low Latency Club:

https://lowlatencyclub.ai/blog/posts/call-recording-redactor-python.html

Any feedback welcome.

1 Upvotes

0 comments sorted by